Files
FarmMapsLib/projects/common/src/fm/components/user-menu/user-menu.component.html
Willem Dantuma ad86e41345
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
Add background-color padding and border
2020-09-04 10:40:34 +02:00

15 lines
708 B
HTML

<div>
<div (click)="toggle($event)" class="rounded-circle menu-button hidden" [ngClass]="{'hidden':!user}">
<span *ngIf="user"><span [title]="user.name">{{getLetter()}}</span></span>
<div class="menu hidden" [ngClass]="{'hidden':!showMenu}">
<div class="card" *ngIf="user">
<div class="card-body">
<div class="username">{{user.name}}</div>
<div><a href="#" (click)="logout($event)" i18n>logout</a></div>
</div>
</div>
<router-outlet name="user-menu"></router-outlet>
</div>
</div>
</div>