mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
switching notes and tabs now work for most widgets
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user