mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(editor): Migrate ndv.store to composition API (#11574)
This commit is contained in:
@@ -185,12 +185,17 @@ const node = toRef(props, 'node');
|
||||
|
||||
const pinnedData = usePinnedData(node, {
|
||||
runIndex: props.runIndex,
|
||||
displayMode: ndvStore.getPanelDisplayMode(props.paneType),
|
||||
displayMode:
|
||||
props.paneType === 'input' ? ndvStore.inputPanelDisplayMode : ndvStore.outputPanelDisplayMode,
|
||||
});
|
||||
const { isSubNodeType } = useNodeType({
|
||||
node,
|
||||
});
|
||||
|
||||
const displayMode = computed(() =>
|
||||
props.paneType === 'input' ? ndvStore.inputPanelDisplayMode : ndvStore.outputPanelDisplayMode,
|
||||
);
|
||||
|
||||
const isReadOnlyRoute = computed(() => route.meta.readOnlyCanvas === true);
|
||||
const isWaitNodeWaiting = computed(
|
||||
() =>
|
||||
@@ -200,7 +205,6 @@ const isWaitNodeWaiting = computed(
|
||||
);
|
||||
|
||||
const { activeNode } = storeToRefs(ndvStore);
|
||||
const displayMode = computed(() => ndvStore.getPanelDisplayMode(props.paneType));
|
||||
const nodeType = computed(() => {
|
||||
if (!node.value) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user