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

@@ -42,14 +42,14 @@ class NoteInfoWidget extends StandardWidget {
this.$body.html(TPL);
}
refreshWithNote(note) {
async refreshWithNote(note) {
const $noteId = this.$body.find(".note-info-note-id");
const $dateCreated = this.$body.find(".note-info-date-created");
const $dateModified = this.$body.find(".note-info-date-modified");
const $type = this.$body.find(".note-info-type");
const $mime = this.$body.find(".note-info-mime");
const {noteComplement} = this.tabContext;
const noteComplement = await this.tabContext.getNoteComplement();
$noteId.text(note.noteId);
$dateCreated