mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
wip
This commit is contained in:
@@ -219,4 +219,10 @@ export default class NoteDetailWidget extends TabAwareWidget {
|
||||
protectedSessionStartedListener() {
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
notesReloadedListener({loadResults}) {
|
||||
if (loadResults.isNoteReloaded(this.noteId, this.componentId)) {
|
||||
this.refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,15 @@ export default class TabAwareWidget extends BasicWidget {
|
||||
}
|
||||
|
||||
isNote(noteId) {
|
||||
return this.tabContext && this.tabContext.note && this.tabContext.note.noteId === noteId;
|
||||
return this.noteId === noteId;
|
||||
}
|
||||
|
||||
get note() {
|
||||
return this.tabContext && this.tabContext.note;
|
||||
}
|
||||
|
||||
get noteId() {
|
||||
return this.note && this.note.noteId;
|
||||
}
|
||||
|
||||
tabNoteSwitchedListener({tabId}) {
|
||||
|
||||
Reference in New Issue
Block a user