mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
lazy loading of note complement
This commit is contained in:
@@ -9,14 +9,16 @@ const $type = $("#note-info-type");
|
||||
const $mime = $("#note-info-mime");
|
||||
const $okButton = $("#note-info-ok-button");
|
||||
|
||||
export function showDialog() {
|
||||
export async function showDialog() {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
$dialog.modal();
|
||||
|
||||
const {note, noteComplement} = appContext.getActiveTabContext();
|
||||
const activeTabContext = appContext.getActiveTabContext();
|
||||
const {note} = activeTabContext;
|
||||
const noteComplement = await activeTabContext.getNoteComplement();
|
||||
|
||||
$noteId.text(note.noteId);
|
||||
$dateCreated.text(noteComplement.dateCreated);
|
||||
|
||||
Reference in New Issue
Block a user