mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Open NDV from logs view with correct run index (#14779)
This commit is contained in:
@@ -79,7 +79,7 @@ const { APP_Z_INDEXES } = useStyles();
|
||||
const settingsEventBus = createEventBus();
|
||||
const redrawRequired = ref(false);
|
||||
const runInputIndex = ref(-1);
|
||||
const runOutputIndex = ref(-1);
|
||||
const runOutputIndex = computed(() => ndvStore.output.run ?? -1);
|
||||
const isLinkingEnabled = ref(true);
|
||||
const selectedInput = ref<string | undefined>();
|
||||
const triggerWaitingWarningEnabled = ref(false);
|
||||
@@ -476,7 +476,7 @@ const trackLinking = (pane: string) => {
|
||||
};
|
||||
|
||||
const onLinkRunToInput = () => {
|
||||
runOutputIndex.value = runInputIndex.value;
|
||||
ndvStore.setOutputRunIndex(runInputIndex.value);
|
||||
isLinkingEnabled.value = true;
|
||||
trackLinking('input');
|
||||
};
|
||||
@@ -553,14 +553,14 @@ const trackRunChange = (run: number, pane: string) => {
|
||||
};
|
||||
|
||||
const onRunOutputIndexChange = (run: number) => {
|
||||
runOutputIndex.value = run;
|
||||
ndvStore.setOutputRunIndex(run);
|
||||
trackRunChange(run, 'output');
|
||||
};
|
||||
|
||||
const onRunInputIndexChange = (run: number) => {
|
||||
runInputIndex.value = run;
|
||||
if (linked.value) {
|
||||
runOutputIndex.value = run;
|
||||
ndvStore.setOutputRunIndex(run);
|
||||
}
|
||||
trackRunChange(run, 'input');
|
||||
};
|
||||
@@ -622,7 +622,7 @@ watch(
|
||||
|
||||
if (node && node.name !== oldNode?.name && !isActiveStickyNode.value) {
|
||||
runInputIndex.value = -1;
|
||||
runOutputIndex.value = -1;
|
||||
ndvStore.setOutputRunIndex(-1);
|
||||
isLinkingEnabled.value = true;
|
||||
selectedInput.value = undefined;
|
||||
triggerWaitingWarningEnabled.value = false;
|
||||
@@ -675,7 +675,7 @@ watch(
|
||||
);
|
||||
|
||||
watch(maxOutputRun, () => {
|
||||
runOutputIndex.value = -1;
|
||||
ndvStore.setOutputRunIndex(-1);
|
||||
});
|
||||
|
||||
watch(maxInputRun, () => {
|
||||
|
||||
Reference in New Issue
Block a user