fix(desktop): close database tabs with connection
This commit is contained in:
1 parent
b9fa36763e
commit
b4c469a69f
3 files changed
+78
No files matched your search
@@ -1478,6 +1478,7 @@ async function closeDatabaseConnection() {
|
||||
if (node.type !== "database" || !node.connectionId || node.database == null) return;
|
||||
try {
|
||||
await connectionStore.closeDatabaseConnection(node.connectionId, node.database);
|
||||
queryStore.closeDatabaseTabs(node.connectionId, node.database);
|
||||
toast(t("connection.databaseConnectionClosed", { name: node.label }), 2000);
|
||||
} catch (e: any) {
|
||||
toast(t("connection.saveFailed", { message: e?.message || String(e) }), 5000);
|
||||
|
||||
Reference in new issue
Block a user