mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 09:36:01 +00:00
native menu, fullscreen refactor
This commit is contained in:
@@ -15,9 +15,8 @@
|
||||
import { subscribeConnectionPingers } from './utility/connectionsPinger';
|
||||
import { subscribePermissionCompiler } from './utility/hasPermission';
|
||||
import { apiCall } from './utility/api';
|
||||
import { getConfig, getUsedApps } from './utility/metadataLoaders';
|
||||
import { getConfig, getSettings, getUsedApps } from './utility/metadataLoaders';
|
||||
import AppTitleProvider from './utility/AppTitleProvider.svelte';
|
||||
import { initTitleBarVisibility } from './utility/common';
|
||||
|
||||
let loadedApi = false;
|
||||
|
||||
@@ -27,13 +26,11 @@
|
||||
// return;
|
||||
// }
|
||||
|
||||
await initTitleBarVisibility();
|
||||
|
||||
try {
|
||||
// console.log('************** LOADING API');
|
||||
|
||||
const settings = await apiCall('config/get-settings');
|
||||
const connections = await apiCall('connections/list');
|
||||
const settings = await getSettings();
|
||||
const config = await getConfig();
|
||||
const apps = await getUsedApps();
|
||||
loadedApi = settings && connections && config && apps;
|
||||
|
||||
Reference in New Issue
Block a user