1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-29 02:12:25 +02:00

fixing menu dropdown

This commit is contained in:
Patrik J. Braun 2019-07-21 15:42:07 +02:00
parent f46cb80c3c
commit 384d366cd3

View File

@ -32,19 +32,18 @@
<li class="nav-item ml-2"> <li class="nav-item ml-2">
<app-language class="navbar-btn" isDark="true"></app-language> <app-language class="navbar-btn" isDark="true"></app-language>
</li> </li>
<div class="btn-group" dropdown placement="bottom right" container="body" <div class="btn-group" dropdown placement="bottom"
*ngIf="isAdmin() || authenticationRequired"> *ngIf="isAdmin() || authenticationRequired">
<button id="button-basic" dropdownToggle <button id="button-alignment" dropdownToggle
type="button" class="btn btn-dark dropdown-toggle" type="button" class="btn btn-dark dropdown-toggle"
aria-controls="dropdown-basic"> aria-controls="dropdown-alignment">
<span class="oi oi-menu"></span> <span class="oi oi-menu"></span>
<span *ngIf="isAdmin() && notificationService.notifications.length>0" <span *ngIf="isAdmin() && notificationService.notifications.length>0"
class="navbar-badge badge badge-warning">{{notificationService.notifications.length}}</span> class="navbar-badge badge badge-warning">{{notificationService.notifications.length}}</span>
</button> </button>
<ul id="dropdown-basic" *dropdownMenu <ul id="dropdown-alignment" *dropdownMenu
class="dropdown-menu dropdown-menu-right" class="dropdown-menu dropdown-menu-right"
role="menu" aria-labelledby="button-basic"> role="menu" aria-labelledby="button-alignment">
<ng-content select="[navbar-menu]"></ng-content> <ng-content select="[navbar-menu]"></ng-content>
<li role="menuitem" *ngIf="isAdmin()"> <li role="menuitem" *ngIf="isAdmin()">
<a class="dropdown-item" href="#" [routerLink]="['/duplicates']"> <a class="dropdown-item" href="#" [routerLink]="['/duplicates']">