refactored TabContext => NoteContext

This commit is contained in:
zadam
2021-05-22 13:04:08 +02:00
parent 1a0aaf4a30
commit 98dfc77195
4 changed files with 29 additions and 21 deletions

View File

@@ -60,11 +60,11 @@ class NoteContext extends Component {
}
}
getAllSubNoteContexts() {
getSubContexts() {
return appContext.tabManager.noteContexts.filter(nc => nc.ntxId === this.ntxId || nc.mainNtxId === this.ntxId);
}
getMainNoteContext() {
getMainContext() {
if (this.mainNtxId) {
return appContext.tabManager.getNoteContextById(this.mainNtxId);
}
@@ -138,7 +138,7 @@ class NoteContext extends Component {
}
isActive() {
return appContext.tabManager.activeTabId === this.ntxId;
return appContext.tabManager.activeNtxId === this.ntxId;
}
getTabState() {