feat(gbase8s): support dropping a database from the tree

This commit is contained in:
弈秋 authored and GitHub committed 2026-09-17 12:54:56 +08:00
1 parent f78dc1ba16
commit ee757fbe65
3 files changed
+62 -8

No files matched your search

@@ -3522,7 +3522,7 @@ const canSetCreateDatabaseLocale = computed(() => {
const canDropDatabase = computed(() => {
const config = activeNode.value.connectionId ? connectionStore.getConfig(activeNode.value.connectionId) : undefined;
return activeNode.value.type === "database" && !isSqlServerLinkedNode(activeNode.value) && supportsDatabaseCreation(config?.db_type);
return activeNode.value.type === "database" && !isSqlServerLinkedNode(activeNode.value) && (supportsDatabaseCreation(config?.db_type) || supportsCreateDatabaseLocale(config?.db_type, config?.driver_profile));
});
const databasePropertyGroups = computed(() => {