2018-12-05 14:21:10 +01:00
|
|
|
<div class="sub-menu">
|
|
|
|
<ng-container *ngFor="let menuEntry of menuEntries">
|
|
|
|
|
|
|
|
<a *ngIf="menuEntry.routerLink" [routerLink]="menuEntry.routerLink" routerLinkActive="active" class="title-page">{{ menuEntry.label }}</a>
|
|
|
|
|
2019-04-25 10:02:02 +02:00
|
|
|
<div *ngIf="!menuEntry.routerLink" ngbDropdown container="body" class="parent-entry" #dropdown="ngbDropdown" (mouseleave)="closeDropdownIfHovered(dropdown)">
|
2018-12-18 09:31:09 +01:00
|
|
|
<span
|
|
|
|
(mouseenter)="openDropdownOnHover(dropdown)" [ngClass]="{ active: !!suffixLabels[menuEntry.label] }" ngbDropdownAnchor
|
|
|
|
(click)="dropdownAnchorClicked(dropdown)" role="button" class="title-page"
|
|
|
|
>
|
2018-12-05 14:21:10 +01:00
|
|
|
<ng-container i18n>{{ menuEntry.label }}</ng-container>
|
|
|
|
<ng-container *ngIf="!!suffixLabels[menuEntry.label]"> - {{ suffixLabels[menuEntry.label] }}</ng-container>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<div ngbDropdownMenu>
|
2019-03-20 13:53:51 +01:00
|
|
|
<a *ngFor="let menuChild of menuEntry.children" class="dropdown-item" [ngClass]="{ icon: hasIcons }" [routerLink]="menuChild.routerLink">
|
|
|
|
<my-global-icon *ngIf="menuChild.iconName" [iconName]="menuChild.iconName"></my-global-icon>
|
|
|
|
|
|
|
|
{{ menuChild.label }}
|
|
|
|
</a>
|
2018-12-05 14:21:10 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</ng-container>
|
|
|
|
</div>
|