mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
using dynamic import for dialogs and widgets to speed up initial load
This commit is contained in:
@@ -18,7 +18,7 @@ const $opmlVersions = $("#opml-versions");
|
||||
let exportId = '';
|
||||
let branchId = null;
|
||||
|
||||
async function showDialog(node, defaultType) {
|
||||
export async function showDialog(node, defaultType) {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
// each opening of the dialog resets the exportId so we don't associate it with previous exports anymore
|
||||
@@ -134,8 +134,4 @@ messagingService.subscribeToMessages(async message => {
|
||||
|
||||
infoService.showMessage("Export finished successfully.");
|
||||
}
|
||||
});
|
||||
|
||||
export default {
|
||||
showDialog
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user