diff --git a/src/components/layout/AppDialogs.vue b/src/components/layout/AppDialogs.vue index 9debba06e6..b912a4aa2e 100644 --- a/src/components/layout/AppDialogs.vue +++ b/src/components/layout/AppDialogs.vue @@ -70,10 +70,20 @@ watch(editConfig, (v) => { if (v) emit("update:showConnectionDialog", true); }); +watch( + () => connectionStore.newConnectionGroupId, + (v) => { + if (v) emit("update:showConnectionDialog", true); + }, +); + watch( () => props.showConnectionDialog, (v) => { - if (!v) connectionStore.stopEditing(); + if (!v) { + connectionStore.stopEditing(); + connectionStore.stopCreatingConnectionInGroup(); + } }, ); diff --git a/src/components/sidebar/TreeItem.vue b/src/components/sidebar/TreeItem.vue index 7c6960c887..6ed41ee3d4 100644 --- a/src/components/sidebar/TreeItem.vue +++ b/src/components/sidebar/TreeItem.vue @@ -1075,6 +1075,10 @@ function deleteConnectionGroup() { showDeleteGroupConfirm.value = true; } +function newConnectionInGroup() { + connectionStore.startCreatingConnectionInGroup(props.node.id); +} + function confirmDeleteGroup() { connectionStore.deleteConnectionGroup(props.node.id); showDeleteGroupConfirm.value = false; @@ -1325,6 +1329,10 @@ const isDragging = computed(() => dragState.active && dragState.draggedId === pr