mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
don't open new connection on startup, when new.connection is not enabled
Some checks are pending
Run tests / test-runner (push) Waiting to run
Some checks are pending
Run tests / test-runner (push) Waiting to run
This commit is contained in:
parent
196c0b8a3e
commit
399298d3bb
@ -4,7 +4,7 @@
|
||||
import runCommand from '../commands/runCommand';
|
||||
import ErrorMessageModal from '../modals/ErrorMessageModal.svelte';
|
||||
import { showModal } from '../modals/modalTools';
|
||||
import { openedTabs } from '../stores';
|
||||
import { commandsCustomized, openedTabs } from '../stores';
|
||||
|
||||
import { getConfig, getConnectionList, useFavorites } from './metadataLoaders';
|
||||
import openNewTab from './openNewTab';
|
||||
@ -49,7 +49,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (!$openedTabs.find(x => x.closedTime == null) && !(await getConnectionList()).find(x => !x.unsaved)) {
|
||||
if (
|
||||
!$openedTabs.find(x => x.closedTime == null) &&
|
||||
!(await getConnectionList()).find(x => !x.unsaved) &&
|
||||
$commandsCustomized['new.connection']?.enabled
|
||||
) {
|
||||
openNewTab({
|
||||
title: 'New Connection',
|
||||
icon: 'img connection',
|
||||
|
Loading…
Reference in New Issue
Block a user