database file label

This commit is contained in:
Jan Prochazka
2021-05-06 11:17:30 +02:00
parent 62cedd23b7
commit 1638095c98
3 changed files with 12 additions and 4 deletions

View File

@@ -20,6 +20,7 @@
import FormProviderCore from '../forms/FormProviderCore.svelte';
import { extensions } from '../stores';
import _ from 'lodash';
import { getDatabaseFileLabel } from '../utility/getConnectionLabel';
export let connection;
@@ -54,6 +55,7 @@
? {
..._.omit(e.detail, ['server', 'port', 'defaultDatabase']),
singleDatabase: true,
defaultDatabase: getDatabaseFileLabel(e.detail.databaseFile),
}
: {
..._.omit(e.detail, ['databaseFile']),