mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 17:55:52 +01:00
using dynamic import for dialogs and widgets to speed up initial load
This commit is contained in:
@@ -9,7 +9,7 @@ const $buildDate = $("#build-date");
|
||||
const $buildRevision = $("#build-revision");
|
||||
const $dataDirectory = $("#data-directory");
|
||||
|
||||
async function showDialog() {
|
||||
export async function showDialog() {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
const appInfo = await server.get('app-info');
|
||||
@@ -25,8 +25,4 @@ async function showDialog() {
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
$dialog.modal();
|
||||
}
|
||||
|
||||
export default {
|
||||
showDialog
|
||||
}
|
||||
Reference in New Issue
Block a user