This commit is contained in:
zadam
2021-05-22 22:55:24 +02:00
parent 7528181ca2
commit d68ea201a3
6 changed files with 39 additions and 10 deletions

View File

@@ -23,6 +23,8 @@ export default class PaneContainer extends FlexContainer {
this.$widget.append($renderedWidget);
widget.handleEvent('initialRenderComplete');
widget.toggleExt(false);
this.widgets[noteContext.ntxId] = widget;
@@ -60,7 +62,7 @@ export default class PaneContainer extends FlexContainer {
for (const ntxId in this.widgets) {
const noteContext = appContext.tabManager.getNoteContextById(ntxId);
console.log(noteContext, activeNtxId);
const widget = this.widgets[ntxId];
widget.toggleExt(show && activeNtxId && [noteContext.ntxId, noteContext.mainNtxId].includes(activeNtxId));
}
@@ -116,6 +118,8 @@ export default class PaneContainer extends FlexContainer {
}
}
this.refresh();
return Promise.all(promises);
}
}