Skip to content
Snippets Groups Projects
Commit dd455228 authored by rhenck's avatar rhenck
Browse files

[editor] Update unit definition after page split/merge

parent 63e9a402
No related branches found
Tags editor/2.6.0-beta6+player/2.6.0-beta6
No related merge requests found
Pipeline #66746 failed
......@@ -225,6 +225,7 @@ export class UnitService {
this.unit.pages.splice(pageIndex + 1, 0, newPage);
this.selectionService.selectedPageIndex = pageIndex + 1;
this.selectionService.selectedSectionIndex = 0;
this.updateUnitDefinition();
}
collapsePage(pageIndex: number): void {
......@@ -233,5 +234,6 @@ export class UnitService {
this.selectionService.selectedPageIndex = pageIndex - 1;
this.selectionService.selectedSectionIndex = this.unit.pages[pageIndex - 1].sections.length - sectionsToMove.length;
this.unit.deletePage(pageIndex);
this.updateUnitDefinition();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment