aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/app.component.html
diff options
context:
space:
mode:
authorbenal01 <bja4245@rit.edu>2025-04-05 13:22:58 -0400
committerGitHub <noreply@github.com>2025-04-05 13:22:58 -0400
commit0103ffc6f84d04433943c644ab759c1d04b5e681 (patch)
tree1cd8fb31b849b4d5be00d4be0e3db92bbbafb5e1 /ufund-ui/src/app/app.component.html
parent5a5d31896d79a736bce33b7d1aa7b3168ba308a9 (diff)
parent04db6f32b249ffb17c571cd6b16c8c54397f0be4 (diff)
downloadJellySolutions-0103ffc6f84d04433943c644ab759c1d04b5e681.tar.gz
JellySolutions-0103ffc6f84d04433943c644ab759c1d04b5e681.tar.bz2
JellySolutions-0103ffc6f84d04433943c644ab759c1d04b5e681.zip
Merge pull request #27 from RIT-SWEN-261-02/need-list-abstraction
Need list abstraction
Diffstat (limited to 'ufund-ui/src/app/app.component.html')
-rw-r--r--ufund-ui/src/app/app.component.html35
1 files changed, 20 insertions, 15 deletions
diff --git a/ufund-ui/src/app/app.component.html b/ufund-ui/src/app/app.component.html
index f697695..30a5347 100644
--- a/ufund-ui/src/app/app.component.html
+++ b/ufund-ui/src/app/app.component.html
@@ -1,17 +1,22 @@
-<div id="header">
- <div>
- <a routerLink="/">
- <h1>Jelly Solutions</h1>
- </a>
+<div id="scroll">
+ <div id="header">
+ <div>
+ <a routerLink="/">
+ <h1>Jelly Solutions</h1>
+ </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>-->
+ <button *ngIf="currentUser | async" (click)="logout()">Log Out</button>
+ <button *ngIf="!(currentUser | async)" (click)="login()">Log In</button>
+ </div>
</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>-->
- <button *ngIf="currentUser | async" (click)="logout()"> Log Out</button>
- <button *ngIf="!(currentUser | async)" (click)="login()"> Log In</button>
- </div>
-</div>
-<router-outlet />
+ <router-outlet />
+</div>
+<div *ngIf="modalService.getModalBehaviorSubject() | async" class="modal">
+ <ng-container [ngTemplateOutlet]="modalService.getModalBehaviorSubject() | async" />
+</div>