diff --git a/apps/desktop/src/components/sidebar/VisibleDatabasesDialog.vue b/apps/desktop/src/components/sidebar/VisibleDatabasesDialog.vue
index 988c400bb7..491bf7f421 100644
--- a/apps/desktop/src/components/sidebar/VisibleDatabasesDialog.vue
+++ b/apps/desktop/src/components/sidebar/VisibleDatabasesDialog.vue
@@ -101,10 +101,16 @@ function toggleDatabase(database: string) {
selectedNames.value = next;
}
+const isSearching = computed(() => searchText.value.trim().length > 0);
+
function selectAll() {
selectedNames.value = new Set(listedDatabaseNames.value);
}
+function selectFiltered() {
+ selectedNames.value = new Set(filteredDatabaseNames.value);
+}
+
function clearSelection() {
selectedNames.value = new Set();
}
@@ -142,6 +148,9 @@ async function saveSelection() {
+
diff --git a/apps/desktop/src/i18n/locales/en.ts b/apps/desktop/src/i18n/locales/en.ts
index 369540db88..6264ce38b1 100644
--- a/apps/desktop/src/i18n/locales/en.ts
+++ b/apps/desktop/src/i18n/locales/en.ts
@@ -1161,6 +1161,7 @@
searchPlaceholder: "Search databases...",
selectedCount: "{selected}/{total} selected",
selectAll: "Select all",
+ selectFiltered: "Select search results",
clear: "Clear",
showAll: "Show all",
showSystemDatabases: "Show system databases",
diff --git a/apps/desktop/src/i18n/locales/zh-CN.ts b/apps/desktop/src/i18n/locales/zh-CN.ts
index 7efc32e35b..88825050a5 100644
--- a/apps/desktop/src/i18n/locales/zh-CN.ts
+++ b/apps/desktop/src/i18n/locales/zh-CN.ts
@@ -1160,6 +1160,7 @@
searchPlaceholder: "搜索数据库...",
selectedCount: "已选择 {selected}/{total}",
selectAll: "全选",
+ selectFiltered: "选中搜索结果",
clear: "清空",
showAll: "显示全部",
showSystemDatabases: "显示系统库",