separate schema selector in frontend

This commit is contained in:
Jan Prochazka
2024-09-19 15:19:16 +02:00
parent cb7224ac94
commit 4431d08a88
14 changed files with 90 additions and 37 deletions

View File

@@ -8,6 +8,7 @@ import _ from 'lodash';
import { safeJsonParse } from 'dbgate-tools';
import { apiCall } from './utility/api';
import { getOpenedTabsStorageName, isAdminPage } from './utility/pageDefs';
import { switchCurrentDatabase } from './utility/common';
export interface TabDefinition {
title: string;
@@ -296,7 +297,7 @@ export function subscribeApiDependendStores() {
currentConfigValue = value;
invalidateCommands();
if (value.singleDbConnection) {
currentDatabase.set(value.singleDbConnection);
switchCurrentDatabase(value.singleDbConnection);
}
});
}