mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(editor): Remember different panel state for sub nodes (#16189)
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
findSelectedLogEntry,
|
||||
getDepth,
|
||||
getEntryAtRelativeIndex,
|
||||
isSubNodeLog,
|
||||
} from '@/features/logs/logs.utils';
|
||||
import { useTelemetry } from '@/composables/useTelemetry';
|
||||
import { canvasEventBus } from '@/event-bus/canvas';
|
||||
@@ -72,6 +73,16 @@ export function useLogsSelection(
|
||||
syncSelectionToCanvasIfEnabled(nextEntry);
|
||||
}
|
||||
|
||||
watch(
|
||||
selected,
|
||||
(sel) => {
|
||||
if (sel) {
|
||||
logsStore.setSubNodeSelected(isSubNodeLog(sel));
|
||||
}
|
||||
},
|
||||
{ immediate: true },
|
||||
);
|
||||
|
||||
// Synchronize selection from canvas
|
||||
watch(
|
||||
[() => uiStore.lastSelectedNode, () => logsStore.isLogSelectionSyncedWithCanvas],
|
||||
|
||||
Reference in New Issue
Block a user