aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/cupboard/cupboard.component.html
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-04-04 21:55:12 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-04-04 21:55:12 -0400
commitb578584a1208178100bf90e8b06971772c7fc00f (patch)
tree6c2e5ee5fd3cc7e96e036704ebe3b1ba7cbfc9f5 /ufund-ui/src/app/components/cupboard/cupboard.component.html
parent03431245f71385c5d641f66a7f63c1a22ab65210 (diff)
downloadJellySolutions-b578584a1208178100bf90e8b06971772c7fc00f.tar.gz
JellySolutions-b578584a1208178100bf90e8b06971772c7fc00f.tar.bz2
JellySolutions-b578584a1208178100bf90e8b06971772c7fc00f.zip
Fix many bugs and code clean up
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html')
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html
index 3873719..cd8fec2 100644
--- a/ufund-ui/src/app/components/cupboard/cupboard.component.html
+++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html
@@ -4,7 +4,7 @@
<ng-template #create>
<app-need-edit [mode]="'Create'" (refreshNeedList)="refresh()"></app-need-edit>
</ng-template>
- <button *ngIf="isManager()" class="button2" (click)="modalService.showModal(create)"><span class="icon">add</span>Create Need</button>
+ <button *ngIf="usersService.isManager()" class="button2" (click)="modalService.showModal(create)"><span class="icon">add</span>Create Need</button>
</div>
<div id="header2">
@@ -33,16 +33,16 @@
<h2 *ngIf="searchResults.length == 0"> No Results Found </h2>
<ng-template let-need #NLActions>
- <button *ngIf="isHelper()" (click)="addToBasket(need)" [disabled]="inBasket(usersService.getBasket() | async, need)">
- <span class="icon">{{inBasket(usersService.getBasket() | async, need)? "check": "add" }}</span>Add To Basket
+ <button *ngIf="usersService.isHelper()" (click)="addToBasket(need)" [disabled]="usersService.inBasket(usersService.getBasket() | async, need)">
+ <span class="icon">{{usersService.inBasket(usersService.getBasket() | async, need)? "check": "add" }}</span>Add To Basket
</button>
<ng-template #edit>
<app-need-edit *ngIf="need" [mode]="'Edit'" [need]="need" (refreshNeedList)="refresh()"></app-need-edit>
</ng-template>
- <button *ngIf="isManager()" (click)="modalService.showModal(edit)">
+ <button *ngIf="usersService.isManager()" (click)="modalService.showModal(edit)">
<span class="icon">edit</span>Edit Need
</button>
- <button *ngIf="isManager()" (click)="deleteNeed(need.id)" >
+ <button *ngIf="usersService.isManager()" (click)="deleteNeed(need.id)" >
<span class="icon">delete</span>Delete Need
</button>
</ng-template>