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 17:22:10 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-04-04 17:22:10 -0400
commitd85eeb6918d521197c2e6ad1e3da2dec8ce95398 (patch)
tree69747e9666542e1766603d753b7fd06d1be9801b /ufund-ui/src/app/components/cupboard/cupboard.component.html
parent5a0bdd977d1e0f659c9ced795def86f031665759 (diff)
downloadJellySolutions-d85eeb6918d521197c2e6ad1e3da2dec8ce95398.tar.gz
JellySolutions-d85eeb6918d521197c2e6ad1e3da2dec8ce95398.tar.bz2
JellySolutions-d85eeb6918d521197c2e6ad1e3da2dec8ce95398.zip
Edit modal
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html')
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html
index 71c258e..5e88582 100644
--- a/ufund-ui/src/app/components/cupboard/cupboard.component.html
+++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html
@@ -33,7 +33,10 @@
<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)">
+ <ng-template #edit>
+ <app-need-edit *ngIf="need" [selectedNeed]="need" (refreshNeedList)="refresh()"></app-need-edit>
+ </ng-template>
+ <button *ngIf="isManager()" (click)="modalService.showModal(edit)">
<span class="icon">edit</span>Edit Need
</button>
<button *ngIf="isManager()" (click)="deleteNeed(need.id)" >
@@ -43,9 +46,7 @@
<app-need-list [actionArea]="NLActions" *ngIf="searchResults.length > 0" [needs]="searchResults" [itemsPerPage]="itemsPerPage" #needList/>
</div>
-<!--<ng-template [ngIf]="isManager()" >-->
<!--<div>-->
-<!-- <app-need-edit *ngIf="selectedForm === 'update'" [selectedNeed]="selectedNeed" (refreshNeedList)="needList.refresh()"></app-need-edit>-->
<!-- <div>-->
<!-- <div id="create-form" *ngIf="selectedForm === 'create'">-->
<!-- <h1> Create Need </h1>-->
@@ -73,4 +74,3 @@
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
-<!--</ng-template>-->