diff options
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html')
-rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.html | 10 |
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> |