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