Merge pull request #4001 from dymani/reopen-in-place

Reopen recently closed tab/split in place
This commit is contained in:
zadam
2023-07-24 22:52:14 +02:00
committed by GitHub
4 changed files with 54 additions and 5 deletions

View File

@@ -136,6 +136,15 @@ export default class SplitNoteContainer extends FlexContainer {
}
}
contextsReopenedEvent({ntxId, afterNtxId}) {
if (ntxId === undefined || afterNtxId === undefined) {
// no single split reopened
return;
}
this.$widget.find(`[data-ntx-id="${ntxId}"]`)
.insertAfter(this.$widget.find(`[data-ntx-id="${afterNtxId}"]`));
}
async refresh() {
this.toggleExt(true);
}