mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 09:16:45 +01:00
using dynamic import for dialogs and widgets to speed up initial load
This commit is contained in:
@@ -14,7 +14,7 @@ async function showCurrentNoteRevisions() {
|
||||
await showNoteRevisionsDialog(noteDetailService.getActiveNoteId());
|
||||
}
|
||||
|
||||
async function showNoteRevisionsDialog(noteId, noteRevisionId) {
|
||||
export async function showNoteRevisionsDialog(noteId, noteRevisionId) {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
@@ -73,7 +73,3 @@ $(document).on('click', "a[data-action='note-revision']", event => {
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
export default {
|
||||
showCurrentNoteRevisions
|
||||
};
|
||||
Reference in New Issue
Block a user