aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/cupboard/cupboard.component.html
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html')
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html
index c055c31..71c258e 100644
--- a/ufund-ui/src/app/components/cupboard/cupboard.component.html
+++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html
@@ -18,7 +18,7 @@
{{SortingAlgorithms[algorithm].display[sortMode === 'Ascending' ? 0 : 1]}}
</option>
</select>
- <button (click)="toggleSortMode(searchForm.value)">
+ <button (click)="toggleSortMode(searchForm.value)" [title]="sortMode">
<span class="icon">{{sortMode === 'Ascending' ? 'arrow_upward': 'arrow_downward'}}</span>
</button>
<label>Needs per page: </label>
@@ -30,8 +30,8 @@
<h2 *ngIf="searchResults.length == 0"> No Results Found </h2>
<ng-template let-need #NLActions>
- <button *ngIf="isHelper()" (click)="addToBasket(need)">
- <span class="icon">add</span>Add To Basket
+ <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>
<button *ngIf="isManager()" (click)="select(need)">
<span class="icon">edit</span>Edit Need