mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
standard widget => collapsible widget
This commit is contained in:
@@ -28,8 +28,9 @@ export default class TabAwareWidget extends BasicWidget {
|
||||
return this.tabContext && this.tabContext.notePath;
|
||||
}
|
||||
|
||||
tabNoteSwitchedListener({tabId}) {
|
||||
if (this.isTab(tabId)) {
|
||||
tabNoteSwitchedListener({tabId, notePath}) {
|
||||
// if notePath does not match then the tabContext has been switched to another note in the mean time
|
||||
if (this.isTab(tabId) && this.notePath === notePath) {
|
||||
this.noteSwitched();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user