feat(tabs): locate tab objects in sidebar

Closes #6681
This commit is contained in:
t8y2 committed 2026-08-22 10:31:17 +00:00
1 parent 53b7be3c6f
commit 906ea8ba26
8 files changed
+104 -16

No files matched your search

+7
View File
@@ -2041,6 +2041,12 @@ function setSidebarOpen(open: boolean) {
safeLocalStorageSet("dbx-sidebar-open", open ? "true" : "false");
}
async function locateTabInSidebar(tab: QueryTab) {
setSidebarOpen(true);
await nextTick();
await appSidebarRef.value?.locateTabInSidebar(tab);
}
function ensureQueryTab(): string {
const tab = activeTab.value;
if (tab && tab.mode === "query") return tab.id;
@@ -2847,6 +2853,7 @@ onUnmounted(() => {
:agent-driver-update-count="toolbarAgentDriverUpdateCount"
@activate-driver-store="openDriverStorePage"
@activate-settings-page="activateSettingsPage"
@locate-tab="locateTabInSidebar"
@activate-tab="
driverStoreActive = false;
settingsStore.settingsPageActive = false;