split window WIP

This commit is contained in:
zadam
2021-05-20 23:13:34 +02:00
parent a3847842cb
commit 1a13132a69
9 changed files with 186 additions and 105 deletions

View File

@@ -3,7 +3,12 @@ import appContext from "../services/app_context.js";
export default class TabAwareWidget extends BasicWidget {
isTab(tabId) {
return this.tabContext && this.tabContext.tabId === tabId;
if (Array.isArray(tabId)) {
return this.tabContext && tabId.includes(this.tabContext.tabId);
}
else {
return this.tabContext && this.tabContext.tabId === tabId;
}
}
isTabOrParent(tabId) {