connection workflow

This commit is contained in:
Jan Prochazka
2022-05-19 13:05:59 +02:00
parent b3a2197820
commit 1d013f96fb
3 changed files with 19 additions and 5 deletions

View File

@@ -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) {