mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
introduction of refreshWithNote
This commit is contained in:
@@ -18,12 +18,21 @@ export default class TabAwareWidget extends BasicWidget {
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
// to override
|
||||
activeTabChanged() {
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
refresh() {}
|
||||
refresh() {
|
||||
if (this.tabContext && this.tabContext.note) {
|
||||
this.toggle(true);
|
||||
this.refreshWithNote();
|
||||
}
|
||||
else {
|
||||
this.toggle(false);
|
||||
}
|
||||
}
|
||||
|
||||
refreshWithNote() {}
|
||||
|
||||
activeTabChangedListener() {
|
||||
this.tabContext = this.appContext.getActiveTabContext();
|
||||
|
||||
Reference in New Issue
Block a user