Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 72b00c4a authored by VIAUD Nathan's avatar VIAUD Nathan
Browse files

Remove active effect on selectNode mode

parent a2ab7944
Branches
No related tags found
1 merge request!67Resolve "Badge implementation"
Pipeline #847213 passed
...@@ -3,6 +3,7 @@ import { useEditorStore } from '@/src/shared/stores'; ...@@ -3,6 +3,7 @@ import { useEditorStore } from '@/src/shared/stores';
import { useVueFlow } from '@vue-flow/core'; import { useVueFlow } from '@vue-flow/core';
import ContentButton from '@/src/components/ContentButton.vue'; import ContentButton from '@/src/components/ContentButton.vue';
import { exitSelectNodeMode, graphService } from '@/src/shared/services'; import { exitSelectNodeMode, graphService } from '@/src/shared/services';
import { computed } from 'vue';
const editorStore = useEditorStore(); const editorStore = useEditorStore();
...@@ -24,6 +25,8 @@ const classList = { ...@@ -24,6 +25,8 @@ const classList = {
'btn-content-large': true, 'btn-content-large': true,
}; };
const selected = computed(() => editorStore.openedElementId ? editorStore.openedElementId === currentNode.id : false);
const isActive = computed(() => selected.value && !editorStore.selectNodeMode);
function openForm() { function openForm() {
if(editorStore.selectNodeMode) { if(editorStore.selectNodeMode) {
...@@ -45,7 +48,7 @@ function onContextMenu() { ...@@ -45,7 +48,7 @@ function onContextMenu() {
:icon="currentNode.data.action.icon" :icon="currentNode.data.action.icon"
:is-draggable="false" :is-draggable="false"
:class-list="classList" :class-list="classList"
:is-active="editorStore.openedElementId ? editorStore.openedElementId === currentNode.id : false" :is-active="isActive"
subtitle="ePoc" subtitle="ePoc"
@click="openForm()" @click="openForm()"
@mousedown="editorStore.closeFormPanel()" @mousedown="editorStore.closeFormPanel()"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment