94390: Replace DSO page edit buttons with a menu

This commit is contained in:
Yana De Pauw
2022-09-20 15:45:04 +02:00
parent ca87f09625
commit 878db5be75
62 changed files with 1247 additions and 585 deletions

View File

@@ -64,7 +64,9 @@ export class MenuSectionComponent implements OnInit, OnDestroy {
*/
toggleSection(event: Event) {
event.preventDefault();
this.menuService.toggleActiveSection(this.menuID, this.section.id);
if (!this.section.model?.disabled) {
this.menuService.toggleActiveSection(this.menuID, this.section.id);
}
}
/**
@@ -73,7 +75,9 @@ export class MenuSectionComponent implements OnInit, OnDestroy {
*/
activateSection(event: Event) {
event.preventDefault();
this.menuService.activateSection(this.menuID, this.section.id);
if (!this.section.model?.disabled) {
this.menuService.activateSection(this.menuID, this.section.id);
}
}
/**