getConnectionLabel refactor

This commit is contained in:
Jan Prochazka
2024-08-02 11:49:45 +02:00
parent cf39fd59f9
commit 7fcebedcdd
21 changed files with 30 additions and 24 deletions

View File

@@ -60,7 +60,7 @@
</script>
<script>
import { filterName } from 'dbgate-tools';
import { filterName, getConnectionLabel } from 'dbgate-tools';
import _ from 'lodash';
import { onMount } from 'svelte';
@@ -75,7 +75,6 @@
visibleCommandPalette,
} from '../stores';
import clickOutside from '../utility/clickOutside';
import getConnectionLabel from '../utility/getConnectionLabel';
import { isElectronAvailable } from '../utility/getElectron';
import keycodes from '../utility/keycodes';
import { useConnectionList, useDatabaseInfo } from '../utility/metadataLoaders';

View File

@@ -1,7 +1,7 @@
import _ from 'lodash';
import { recentDatabases, currentDatabase, getRecentDatabases } from '../stores';
import getConnectionLabel from '../utility/getConnectionLabel';
import registerCommand from './registerCommand';
import { getConnectionLabel } from 'dbgate-tools';
currentDatabase.subscribe(value => {
if (!value) return;

View File

@@ -121,7 +121,7 @@ registerCommand({
toolbarName: 'Add connection folder',
category: 'New',
toolbarOrder: 1,
name: 'Connection',
name: 'Connection folder',
testEnabled: () => !getCurrentConfig()?.runAsPortal,
onClick: () => {
showModal(InputTextModal, {