From aed96b4a060c8d605f72affcef2e8692991b0228 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Sat, 27 Jun 2026 01:35:03 +0800 Subject: [PATCH] fix(connection): hide default visible schema button --- apps/desktop/src/components/connection/ConnectionDialog.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vue index 46e5c53cb..0566d2556 100644 --- a/apps/desktop/src/components/connection/ConnectionDialog.vue +++ b/apps/desktop/src/components/connection/ConnectionDialog.vue @@ -1367,7 +1367,7 @@ const visibleSchemaObjectSelection = computed(() => { const visibleSchemaSummary = computed(() => { const key = visibleSchemasDatabaseKey.value; const configured = form.value.visible_schemas?.[key]; - if (!configured?.length) return t("visibleSchemas.showAll"); + if (!Array.isArray(configured)) return t("visibleSchemas.showAll"); return t("visibleSchemas.selectedCount", { selected: configured.length, total: visibleSchemaNames.value.length }); }); const hasVisibleObjectFilter = computed(() => (visibleFilterUsesSchemas.value ? Array.isArray(visibleSchemaObjectSelection.value) : hasVisibleDatabaseFilter.value)); @@ -4090,10 +4090,10 @@ function openExternalUrl(url: string) { {{ hasVisibleObjectFilter ? visibleObjectSummary : visibleFilterUsesSchemas ? t("contextMenu.configureVisibleObjects") : t("contextMenu.selectVisibleDatabases") }} -