mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
synchronous events, updating title works fully
This commit is contained in:
@@ -8,8 +8,16 @@ export default class TabAwareWidget extends BasicWidget {
|
||||
this.noteSwitched();
|
||||
}
|
||||
|
||||
isTab(tabId) {
|
||||
return this.tabContext && this.tabContext.tabId === tabId;
|
||||
}
|
||||
|
||||
isNote(noteId) {
|
||||
return this.tabContext && this.tabContext.note && this.tabContext.note.noteId === noteId;
|
||||
}
|
||||
|
||||
tabNoteSwitchedListener({tabId}) {
|
||||
if (this.tabContext && tabId === this.tabContext.tabId) {
|
||||
if (this.isTab(tabId)) {
|
||||
this.noteSwitched();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user