Added nav-bar to show home link and user status

This commit is contained in:
Amritanshu
2019-08-22 14:15:02 +05:30
parent 04fb6dfcab
commit 05860fb0b9
9 changed files with 82 additions and 31 deletions

View File

@ -1,10 +1,4 @@
<div fxLayout="row wrap" fxLayoutGap="grid 20px">
<mat-card fxLayout="column" class="square-button" matRipple [routerLink]="['/', 'login']" *ngIf="!(user | async)">
<h3 class="item-name">
<mat-icon>account_box</mat-icon>
Login
</h3>
</mat-card>
<mat-card fxLayout="column" class="square-button" matRipple *ngIf="auth.hasPermission('Guest Book')" [routerLink]="['/', 'guest-book']">
<h3 class="item-name">Guest Book</h3>
</mat-card>
@ -74,10 +68,4 @@
<mat-card fxLayout="column" class="square-button" matRipple *ngIf="auth.hasPermission('Users')" [routerLink]="['/', 'users']">
<h3 class="item-name">Users</h3>
</mat-card>
<mat-card fxLayout="column" class="square-button" matRipple [routerLink]="['/', 'logout']"
*ngIf="user | async as name">
<h3 class="item-name">
<mat-icon>account_box</mat-icon>
Logout {{name}}</h3>
</mat-card>
</div>