mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 03:45:59 +00:00
separate schema selector in frontend
This commit is contained in:
@@ -12,6 +12,7 @@ import { SAVED_FILE_HANDLERS } from '../appobj/SavedFileAppObject.svelte';
|
||||
import _ from 'lodash';
|
||||
import ErrorMessageModal from '../modals/ErrorMessageModal.svelte';
|
||||
import { openImportExportTab } from './importExportTools';
|
||||
import { switchCurrentDatabase } from './common';
|
||||
|
||||
export function canOpenByElectron(file, extensions) {
|
||||
if (!file) return false;
|
||||
@@ -38,7 +39,7 @@ export async function openSqliteFile(filePath) {
|
||||
singleDatabase: true,
|
||||
defaultDatabase,
|
||||
});
|
||||
currentDatabase.set({
|
||||
switchCurrentDatabase({
|
||||
connection: resp,
|
||||
name: getDatabaseFileLabel(filePath),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user