Simplify app bar links
This commit is contained in:
parent
d6fbe06cab
commit
90e3f0c02b
1 changed files with 8 additions and 6 deletions
|
@ -3,12 +3,14 @@
|
|||
</p>
|
||||
<mat-sidenav-container *ngIf="online" class="sidenav-container">
|
||||
<mat-sidenav #sidenav mode="over" closed>
|
||||
<mat-nav-list (click)="sidenav.close()">
|
||||
<a mat-list-item *ngIf="loggedIn" routerLink="">{{ getUsername() }}</a>
|
||||
<a mat-list-item *ngIf="loggedIn" routerLink="/budgets">Budgets</a>
|
||||
<a mat-list-item *ngIf="!loggedIn" routerLink="/login">Login</a>
|
||||
<a mat-list-item *ngIf="!loggedIn" routerLink="/register">Register</a>
|
||||
<a mat-list-item *ngIf="loggedIn" (click)="logout()">Logout</a>
|
||||
<mat-nav-list (click)="sidenav.close()" *ngIf="loggedIn">
|
||||
<a mat-list-item routerLink="">{{ getUsername() }}</a>
|
||||
<a mat-list-item routerLink="/budgets">Budgets</a>
|
||||
<a mat-list-item (click)="logout()">Logout</a>
|
||||
</mat-nav-list>
|
||||
<mat-nav-list (click)="sidenav.close()" *ngIf="!loggedIn">
|
||||
<a mat-list-item routerLink="/login">Login</a>
|
||||
<a mat-list-item routerLink="/register">Register</a>
|
||||
</mat-nav-list>
|
||||
</mat-sidenav>
|
||||
<mat-sidenav-content>
|
||||
|
|
Loading…
Reference in a new issue