switching notes and tabs now work for most widgets

This commit is contained in:
zadam
2020-01-18 20:49:49 +01:00
parent 493730dff6
commit 6d276582cb
11 changed files with 14 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ class NoteInfoWidget extends StandardWidget {
this.$body.html(TPL);
}
activeTabChanged() {
refresh() {
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");
@@ -58,7 +58,7 @@ class NoteInfoWidget extends StandardWidget {
syncDataListener({data}) {
if (data.find(sd => sd.entityName === 'notes' && sd.entityId === this.tabContext.note.noteId)) {
this.activeTabChanged();
this.refresh();
}
}
}