diff options
author | Tyler Ferrari <69283684+Sowgro@users.noreply.github.com> | 2025-04-07 16:50:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-07 16:50:31 -0400 |
commit | dddaceba31730f0c01fd47858b0672c1f664de9b (patch) | |
tree | c8c3229c54955a4a037b0ce0a016221e8784af42 /ufund-ui/src/app/app.component.html | |
parent | 7635188ed6182a72facd8ab3299f13c7217a8abd (diff) | |
parent | 8b64b8bd43f987b924d74d0ea597b7b606ca9357 (diff) | |
download | JellySolutions-dddaceba31730f0c01fd47858b0672c1f664de9b.tar.gz JellySolutions-dddaceba31730f0c01fd47858b0672c1f664de9b.tar.bz2 JellySolutions-dddaceba31730f0c01fd47858b0672c1f664de9b.zip |
Merge pull request #31 from RIT-SWEN-261-02/light-mode
Light mode
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..7277682 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 href="#" (click)="$event.preventDefault(); toggleColorScheme()"><span class="icon">brightness_7</span></a> </div> </div> |