mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
open server connection when opening DB connection
This commit is contained in:
parent
96b2c7280d
commit
566082d40f
@ -187,6 +187,10 @@ export const getPinnedDatabases = () => _.compact(pinnedDatabasesValue);
|
||||
let currentDatabaseValue = null;
|
||||
currentDatabase.subscribe(value => {
|
||||
currentDatabaseValue = value;
|
||||
if (value?.connection?._id) {
|
||||
openedConnections.update(x => _.uniq([...x, value?.connection?._id]));
|
||||
expandedConnections.update(x => _.uniq([...x, value?.connection?._id]));
|
||||
}
|
||||
invalidateCommands();
|
||||
});
|
||||
export const getCurrentDatabase = () => currentDatabaseValue;
|
||||
|
Loading…
Reference in New Issue
Block a user