mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Don't hide FocusPanel when NodeCreator is opened to avoid canvas shift (no-changelog) (#17454)
This commit is contained in:
@@ -981,10 +981,6 @@ function onUpdateNodeOutputs(id: string) {
|
||||
}
|
||||
|
||||
function onClickNodeAdd(source: string, sourceHandle: string) {
|
||||
if (isFocusPanelFeatureEnabled.value && focusPanelStore.focusPanelActive) {
|
||||
focusPanelStore.hideFocusPanel();
|
||||
}
|
||||
|
||||
nodeCreatorStore.openNodeCreatorForConnectingNode({
|
||||
connection: {
|
||||
source,
|
||||
@@ -1218,10 +1214,6 @@ function onOpenSelectiveNodeCreator(
|
||||
function onToggleNodeCreator(options: ToggleNodeCreatorOptions) {
|
||||
nodeCreatorStore.setNodeCreatorState(options);
|
||||
|
||||
if (isFocusPanelFeatureEnabled.value && focusPanelStore.focusPanelActive) {
|
||||
focusPanelStore.hideFocusPanel(options.createNodeActive);
|
||||
}
|
||||
|
||||
if (!options.createNodeActive && !options.hasAddedNodes) {
|
||||
uiStore.resetLastInteractedWith();
|
||||
}
|
||||
@@ -1246,10 +1238,6 @@ function onToggleFocusPanel() {
|
||||
function closeNodeCreator() {
|
||||
if (nodeCreatorStore.isCreateNodeActive) {
|
||||
nodeCreatorStore.isCreateNodeActive = false;
|
||||
|
||||
if (isFocusPanelFeatureEnabled.value && focusPanelStore.focusPanelActive) {
|
||||
focusPanelStore.hideFocusPanel(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user