diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2025-04-07 21:00:53 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2025-04-07 21:00:53 -0400 |
commit | 426b21de0a3f7ee8706b83af4acddb731798be2c (patch) | |
tree | b51bda63a4bbbef158353600a878e8192f7f7952 /ufund-ui/src/app/app.component.html | |
parent | 71e01e85a33b0109847867878b2af733b4751e46 (diff) | |
parent | 7617db08a43d873a65abd47b02e23ad8cb4cb5cd (diff) | |
download | JellySolutions-426b21de0a3f7ee8706b83af4acddb731798be2c.tar.gz JellySolutions-426b21de0a3f7ee8706b83af4acddb731798be2c.tar.bz2 JellySolutions-426b21de0a3f7ee8706b83af4acddb731798be2c.zip |
Merge branch 'main' into call-to-action
Diffstat (limited to 'ufund-ui/src/app/app.component.html')
-rw-r--r-- | ufund-ui/src/app/app.component.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ufund-ui/src/app/app.component.html b/ufund-ui/src/app/app.component.html index 30a5347..03c6338 100644 --- a/ufund-ui/src/app/app.component.html +++ b/ufund-ui/src/app/app.component.html @@ -6,12 +6,12 @@ </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 class="icon" id="darkMode" href="#" (click)="$event.preventDefault(); toggleColorScheme()">brightness_7</a> </div> </div> |