mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
using dynamic import for dialogs and widgets to speed up initial load
This commit is contained in:
@@ -254,7 +254,7 @@ function AttributesModel() {
|
||||
}
|
||||
}
|
||||
|
||||
async function showDialog() {
|
||||
export async function showDialog() {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
// lazily apply bindings on first use
|
||||
@@ -285,8 +285,4 @@ $dialog.on('focus', '.label-value', function (e) {
|
||||
$el: $(this),
|
||||
open: true
|
||||
})
|
||||
});
|
||||
|
||||
export default {
|
||||
showDialog
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user