diff options
| author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-04-07 16:45:38 -0400 | 
|---|---|---|
| committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-04-07 16:45:38 -0400 | 
| commit | ebeafe0a6a70da064fd97359e38f53406a58bed4 (patch) | |
| tree | 4c7f83d1ff75e2598a31e24a005b59d211f2df0a /ufund-ui/src/app/app.component.html | |
| parent | 84a8918451ccccaaf97a6baff5f50e12001d3d4d (diff) | |
| download | JellySolutions-ebeafe0a6a70da064fd97359e38f53406a58bed4.tar.gz JellySolutions-ebeafe0a6a70da064fd97359e38f53406a58bed4.tar.bz2 JellySolutions-ebeafe0a6a70da064fd97359e38f53406a58bed4.zip  | |
Added underline to currently selected page
Diffstat (limited to '')
| -rw-r--r-- | ufund-ui/src/app/app.component.html | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/ufund-ui/src/app/app.component.html b/ufund-ui/src/app/app.component.html index aebf9be..7277682 100644 --- a/ufund-ui/src/app/app.component.html +++ b/ufund-ui/src/app/app.component.html @@ -6,10 +6,9 @@              </a>          </div>          <div> -            <a *ngIf="(currentUser | async)?.type === userType.MANAGER" routerLink="/dashboard">Dashboard</a> -            <a routerLink="/cupboard">Cupboard</a> -            <a *ngIf="(currentUser | async)?.type === userType.HELPER" routerLink="/basket">Basket</a> -    <!--        <span>{{currentUser$ | async}}</span>--> +            <a [class]="location.path() == '/dashboard' ? 'current' : ''" *ngIf="(currentUser | async)?.type === userType.MANAGER" routerLink="/dashboard">Dashboard</a> +            <a [class]="location.path() == '/cupboard' ? 'current' : ''" routerLink="/cupboard">Cupboard</a> +            <a [class]="location.path() == '/basket' ? 'current' : ''" *ngIf="(currentUser | async)?.type === userType.HELPER" routerLink="/basket">Basket</a>              <button *ngIf="currentUser | async" (click)="logout()">Log Out</button>              <button *ngIf="!(currentUser | async)" (click)="login()">Log In</button>              <a href="#" (click)="$event.preventDefault(); toggleColorScheme()"><span class="icon">brightness_7</span></a>  | 
