mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
working note type and note paths widgets
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user