diff --git a/src/components/layout/AppDialogs.vue b/src/components/layout/AppDialogs.vue index 9debba06e..b912a4aa2 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 7c6960c88..6ed41ee3d 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