]>
Commit | Line | Data |
---|---|---|
7034b3c9 | 1 | <div class="sub-menu" [ngClass]="{ 'sub-menu-fixed': !isBroadcastMessageDisplayed, 'no-scroll': isModalOpened }"> |
d363ef53 | 2 | <ng-container *ngFor="let menuEntry of menuEntries; index as id"> |
ddb83e49 | 3 | |
30d55e75 | 4 | <a *ngIf="menuEntry.routerLink && isDisplayed(menuEntry)" [routerLink]="menuEntry.routerLink" routerLinkActive="active" class="title-page title-page-settings" #routerLink (click)="onActiveLinkScrollToTop(routerLink)">{{ menuEntry.label }}</a> |
ddb83e49 | 5 | |
dfe3f7b7 | 6 | <div *ngIf="!menuEntry.routerLink && isDisplayed(menuEntry)" ngbDropdown class="parent-entry" |
27f4a1ec | 7 | #dropdown="ngbDropdown" autoClose="true" container="body"> |
80bfd33c | 8 | <span |
805d6a35 C |
9 | *ngIf="isInSmallView" |
10 | tabindex=0 | |
11 | [ngClass]="{ active: !!suffixLabels[menuEntry.label] }" | |
12 | (click)="openModal(id)" (keydown.enter)="openModal(id)" | |
ed5bb517 | 13 | role="button" class="title-page title-page-settings"> |
d363ef53 | 14 | <ng-container i18n>{{ menuEntry.label }}</ng-container> |
d363ef53 K |
15 | </span> |
16 | ||
17 | <span | |
18 | *ngIf="!isInSmallView" | |
ed5bb517 K |
19 | tabindex=0 |
20 | [ngClass]="{ active: !!suffixLabels[menuEntry.label] }" ngbDropdownAnchor | |
21 | (click)="dropdownAnchorClicked(dropdown)" (keydown.enter)="dropdownAnchorClicked(dropdown)" | |
22 | role="button" class="title-page title-page-settings" | |
80bfd33c | 23 | > |
ddb83e49 | 24 | <ng-container i18n>{{ menuEntry.label }}</ng-container> |
ddb83e49 C |
25 | </span> |
26 | ||
27 | <div ngbDropdownMenu> | |
dfe3f7b7 K |
28 | <ng-container *ngFor="let menuChild of menuEntry.children"> |
29 | <a *ngIf="isDisplayed(menuChild)" class="dropdown-item" | |
837fe4f3 | 30 | [ngClass]="{ icon: hasIcons }" |
30d55e75 K |
31 | [routerLink]="menuChild.routerLink" |
32 | #routerLink (click)="onActiveLinkScrollToTop(routerLink)"> | |
dfe3f7b7 | 33 | <my-global-icon *ngIf="menuChild.iconName" [iconName]="menuChild.iconName" aria-hidden="true"></my-global-icon> |
a55052c9 | 34 | |
dfe3f7b7 K |
35 | {{ menuChild.label }} |
36 | </a> | |
37 | </ng-container> | |
ddb83e49 C |
38 | </div> |
39 | </div> | |
ddb83e49 C |
40 | </ng-container> |
41 | </div> | |
d363ef53 K |
42 | |
43 | <ng-template #modal let-close="close" let-dismiss="dismiss"> | |
44 | <div class="modal-body"> | |
45 | <ng-container *ngFor="let menuEntry of menuEntries; index as id"> | |
46 | <div [ngClass]="{ hidden: id !== currentMenuEntryIndex }"> | |
dfe3f7b7 K |
47 | <ng-container *ngFor="let menuChild of menuEntry.children"> |
48 | <a *ngIf="isDisplayed(menuChild)" | |
49 | [ngClass]="{ icon: hasIcons }" | |
30d55e75 K |
50 | [routerLink]="menuChild.routerLink" routerLinkActive="active" |
51 | #routerLink (click)="dismissOtherModals(); onActiveLinkScrollToTop(routerLink)"> | |
dfe3f7b7 | 52 | <my-global-icon *ngIf="menuChild.iconName" [iconName]="menuChild.iconName" aria-hidden="true"></my-global-icon> |
d363ef53 | 53 | |
dfe3f7b7 K |
54 | {{ menuChild.label }} |
55 | </a> | |
56 | </ng-container> | |
d363ef53 K |
57 | </div> |
58 | </ng-container> | |
59 | </div> | |
60 | </ng-template> |