]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html
1 <div class=
"sub-menu" [ngClass]=
"{ 'no-scroll': isModalOpened }">
2 <ng-container *
ngFor=
"let menuEntry of menuEntries; index as id">
4 <a *
ngIf=
"menuEntry.routerLink && isDisplayed(menuEntry)" [routerLink]=
"menuEntry.routerLink" routerLinkActive=
"active" class=
"title-page title-page-settings">{{ menuEntry.label }}
</a>
6 <div *
ngIf=
"!menuEntry.routerLink && isDisplayed(menuEntry)" ngbDropdown
class=
"parent-entry"
7 #
dropdown=
"ngbDropdown" autoClose=
"true">
11 [ngClass]=
"{ active: !!suffixLabels[menuEntry.label] }"
12 (click)=
"openModal(id)" (keydown.enter)=
"openModal(id)"
13 role=
"button" class=
"title-page title-page-settings">
14 <ng-container i18n
>{{ menuEntry.label }}
</ng-container>
18 *
ngIf=
"!isInSmallView"
20 [ngClass]=
"{ active: !!suffixLabels[menuEntry.label] }" ngbDropdownAnchor
21 (click)=
"dropdownAnchorClicked(dropdown)" (keydown.enter)=
"dropdownAnchorClicked(dropdown)"
22 role=
"button" class=
"title-page title-page-settings"
24 <ng-container i18n
>{{ menuEntry.label }}
</ng-container>
28 <ng-container *
ngFor=
"let menuChild of menuEntry.children">
29 <a *
ngIf=
"isDisplayed(menuChild)" class=
"dropdown-item"
30 [ngClass]=
"{ icon: hasIcons }"
31 [routerLink]=
"menuChild.routerLink">
32 <my-global-icon *
ngIf=
"menuChild.iconName" [iconName]=
"menuChild.iconName" aria-hidden=
"true"></my-global-icon>
42 <ng-template #modal
let-close=
"close" let-dismiss=
"dismiss">
43 <div class=
"modal-body">
44 <ng-container *
ngFor=
"let menuEntry of menuEntries; index as id">
45 <div [ngClass]=
"{ hidden: id !== currentMenuEntryIndex }">
46 <ng-container *
ngFor=
"let menuChild of menuEntry.children">
47 <a *
ngIf=
"isDisplayed(menuChild)"
48 [ngClass]=
"{ icon: hasIcons }"
49 [routerLink]=
"menuChild.routerLink" routerLinkActive=
"active" (click)=
"dismissOtherModals()">
50 <my-global-icon *
ngIf=
"menuChild.iconName" [iconName]=
"menuChild.iconName" aria-hidden=
"true"></my-global-icon>