mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
closing panes
This commit is contained in:
@@ -64,6 +64,11 @@ class NoteContext extends Component {
|
||||
return appContext.tabManager.noteContexts.filter(nc => nc.ntxId === this.ntxId || nc.mainNtxId === this.ntxId);
|
||||
}
|
||||
|
||||
isMainContext() {
|
||||
// if null then this is a main context
|
||||
return !this.mainNtxId;
|
||||
}
|
||||
|
||||
getMainContext() {
|
||||
if (this.mainNtxId) {
|
||||
return appContext.tabManager.getNoteContextById(this.mainNtxId);
|
||||
|
||||
Reference in New Issue
Block a user