mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 15:16:01 +00:00
connection workflow
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
import { showModal } from '../modals/modalTools';
|
||||
import { openedTabs } from '../stores';
|
||||
|
||||
import { getConfig, useFavorites } from './metadataLoaders';
|
||||
import { getConfig, getConnectionList, useFavorites } from './metadataLoaders';
|
||||
import openNewTab from './openNewTab';
|
||||
import { showSnackbarInfo } from './snackbar';
|
||||
|
||||
$: favorites = useFavorites();
|
||||
@@ -48,6 +49,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (!$openedTabs.find(x => x.closedTime == null) && !(await getConnectionList()).find(x => !x.unsaved)) {
|
||||
openNewTab({
|
||||
title: 'New Connection',
|
||||
icon: 'img connection',
|
||||
tabComponent: 'ConnectionTab',
|
||||
});
|
||||
}
|
||||
|
||||
const config = await getConfig();
|
||||
const appVersion = localStorage.getItem('appVersion');
|
||||
if (appVersion && appVersion != config.version) {
|
||||
|
||||
Reference in New Issue
Block a user