]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Revert user-menu dropdown active class on sub-menu and autoclose only on outside...
authorkimsible <kimsible@users.noreply.github.com>
Wed, 29 Jul 2020 17:07:03 +0000 (19:07 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Fri, 31 Jul 2020 09:31:45 +0000 (11:31 +0200)
client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html

index 530b9e376eba3daa7b1ba197a6c0d9c079e71abc..9a26614c925eae19c222f7f822f596e243f7006a 100644 (file)
@@ -4,12 +4,8 @@
     <a *ngIf="menuEntry.routerLink && isDisplayed(menuEntry)" [routerLink]="menuEntry.routerLink" routerLinkActive="active" class="title-page title-page-settings">{{ menuEntry.label }}</a>
 
     <div *ngIf="!menuEntry.routerLink && isDisplayed(menuEntry)" ngbDropdown class="parent-entry"
-      #dropdown="ngbDropdown" autoClose="outside">
+      #dropdown="ngbDropdown" autoClose="true">
       <span
-        *ngIf="isInSmallView"
-        tabindex=0
-        [ngClass]="{ active: !!suffixLabels[menuEntry.label] }"
-        (click)="openModal(id)" (keydown.enter)="openModal(id)"
         role="button" class="title-page title-page-settings">
         <ng-container i18n>{{ menuEntry.label }}</ng-container>
       </span>
@@ -27,7 +23,7 @@
       <div ngbDropdownMenu>
         <ng-container *ngFor="let menuChild of menuEntry.children">
           <a *ngIf="isDisplayed(menuChild)" class="dropdown-item"
-            [ngClass]="{ icon: hasIcons, active: suffixLabels[menuEntry.label] === menuChild.label }"
+            [ngClass]="{ icon: hasIcons }"
             [routerLink]="menuChild.routerLink">
             <my-global-icon *ngIf="menuChild.iconName" [iconName]="menuChild.iconName" aria-hidden="true"></my-global-icon>