diff options
author | benal01 <bja4245@rit.edu> | 2025-03-22 12:14:00 -0400 |
---|---|---|
committer | benal01 <bja4245@rit.edu> | 2025-03-22 12:14:00 -0400 |
commit | e9564ba2514f32c63d2ce4ecfc9eeb9f3269f3dd (patch) | |
tree | b6a3d6421bf1f8526632baec6acf20f1cb5e0d1a /ufund-ui/src/app/components/cupboard/cupboard.component.html | |
parent | 2abd4b4ba9171821ac545f8dcb67be1e7d722e01 (diff) | |
download | JellySolutions-e9564ba2514f32c63d2ce4ecfc9eeb9f3269f3dd.tar.gz JellySolutions-e9564ba2514f32c63d2ce4ecfc9eeb9f3269f3dd.tar.bz2 JellySolutions-e9564ba2514f32c63d2ce4ecfc9eeb9f3269f3dd.zip |
[ngClass] tab styling
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html')
-rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index 41bb4a7..9b74b2a 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -5,8 +5,8 @@ <div *ngIf="isManager()" > <h2 > Admin View </h2> <div id="menu"> - <button (click)="selectForm('create')">Create new Need</button> - <button (click)="selectForm('update')">Update existing Need</button> + <button [ngClass]="selectedForm === 'create' ? 'selected-tab' : 'tab'" (click)="selectForm('create')">Create new Need</button> + <button [ngClass]="selectedForm === 'update' ? 'selected-tab' : 'tab'" (click)="selectForm('update')">Update existing Need</button> </div> <div id="create-form" *ngIf="selectedForm === 'create'"> <h1> Create a new need </h1> |