diff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vue index b74150c1a2..855b95a53f 100644 --- a/apps/desktop/src/components/connection/ConnectionDialog.vue +++ b/apps/desktop/src/components/connection/ConnectionDialog.vue @@ -241,6 +241,7 @@ const driverProfiles: Record< function profileForConfig(config: ConnectionConfig) { if (config.driver_profile && driverProfiles[config.driver_profile]) return config.driver_profile; + if (config.db_type === "dameng") return "dm"; return config.db_type; } @@ -336,6 +337,7 @@ watch( } resetTestState(); }, + { immediate: true }, ); const isEditing = ref(false); diff --git a/apps/desktop/src/components/layout/AppDialogs.vue b/apps/desktop/src/components/layout/AppDialogs.vue index c1c0d0c71e..adfa2ff8a5 100644 --- a/apps/desktop/src/components/layout/AppDialogs.vue +++ b/apps/desktop/src/components/layout/AppDialogs.vue @@ -70,6 +70,7 @@ const editConfig = computed(() => { if (!id) return undefined; return connectionStore.getConfig(id); }); +const shouldShowConnectionDialog = computed(() => props.showConnectionDialog || !!editConfig.value); watch(editConfig, (v) => { if (v) emit("update:showConnectionDialog", true); @@ -95,8 +96,8 @@ watch(