Added nav-bar to show home link and user status
This commit is contained in:
1 parent
04fb6dfcab
commit
05860fb0b9
9 files changed
+82
-31
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<mat-toolbar>
|
||||
<a mat-button [routerLink]="['/']">
|
||||
<mat-icon>home</mat-icon>
|
||||
Point of Sale
|
||||
</a>
|
||||
<span class="fill-remaining-space"></span>
|
||||
<button mat-button [routerLink]="['/', 'login']" *ngIf="!(user | async)">
|
||||
<mat-icon>account_box</mat-icon>
|
||||
Login
|
||||
</button>
|
||||
<button mat-button [routerLink]="['/', 'logout']" *ngIf="user | async as name">
|
||||
<mat-icon>account_box</mat-icon>
|
||||
Logout {{name}}
|
||||
</button>
|
||||
</mat-toolbar>
|
||||
Reference in new issue
Block a user