lazy loading of note complement

This commit is contained in:
zadam
2020-02-01 11:33:31 +01:00
parent f6f7836b8e
commit f0cbca2838
11 changed files with 61 additions and 29 deletions

View File

@@ -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);