working note type and note paths widgets

This commit is contained in:
zadam
2020-01-18 19:46:30 +01:00
parent b00a9f4415
commit 493730dff6
9 changed files with 177 additions and 157 deletions

View File

@@ -14,7 +14,9 @@ export default class TabCachingWidget extends TabAwareWidget {
this.$parent = $parent;
}
activeTabChanged() {
activeTabChangedListener() {
super.activeTabChangedListener();
for (const widget of Object.values(this.widgets)) {
widget.toggle(false);
}
@@ -26,9 +28,11 @@ export default class TabCachingWidget extends TabAwareWidget {
this.children.push(widget);
widget.renderTo(this.$parent);
widget.setTabContext(this.tabContext);
widget.eventReceived('setTabContext', {tabContext: this.tabContext});
}
widget.toggle(true);
return false; // stop propagation to children
}
}