mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
sidebar & widget state management WIP
This commit is contained in:
@@ -363,6 +363,23 @@ class TabContext {
|
||||
this.sidebar.syncDataReceived(syncData);
|
||||
}
|
||||
}
|
||||
|
||||
getTabState() {
|
||||
if (!this.notePath) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
tabId: this.tabId,
|
||||
notePath: this.notePath,
|
||||
active: this.tabRow.activeTabEl === this.$tab[0],
|
||||
sidebar: this.sidebar && this.sidebar.getSidebarState()
|
||||
}
|
||||
}
|
||||
|
||||
stateChanged() {
|
||||
noteDetailService.openTabsChanged();
|
||||
}
|
||||
}
|
||||
|
||||
export default TabContext;
|
Reference in New Issue
Block a user