From 29277559ff62c7395e93c84a7ba8df8f861d89c5 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Fri, 12 May 2023 09:39:58 -0500 Subject: [PATCH] Show selected node above others --- src/features/boards/Board.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/features/boards/Board.vue b/src/features/boards/Board.vue index 3a50ff1..a1b5a58 100644 --- a/src/features/boards/Board.vue +++ b/src/features/boards/Board.vue @@ -99,6 +99,10 @@ const stage = ref(null); const sortedNodes = computed(() => { const nodes = props.nodes.value.slice(); + if (props.selectedNode.value) { + const node = nodes.splice(nodes.indexOf(props.selectedNode.value), 1)[0]; + nodes.push(node); + } if (props.draggingNode.value) { const node = nodes.splice(nodes.indexOf(props.draggingNode.value), 1)[0]; nodes.push(node);