introduction of refreshWithNote

This commit is contained in:
zadam
2020-01-19 11:37:24 +01:00
parent adb9ce5e93
commit 9f1e777e6d
16 changed files with 49 additions and 44 deletions

View File

@@ -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();