aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.html
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-04-03 23:11:05 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-04-03 23:11:05 -0400
commit6a5033afc3c8e0d5d12d709b35b306b6ea1f70e8 (patch)
tree15511941490e8010dacaf20c704f9b314da5634b /ufund-ui/src/app/components/need-list/need-list.component.html
parentad651c44ce2515d497c8e5214147c69126e25903 (diff)
downloadJellySolutions-6a5033afc3c8e0d5d12d709b35b306b6ea1f70e8.tar.gz
JellySolutions-6a5033afc3c8e0d5d12d709b35b306b6ea1f70e8.tar.bz2
JellySolutions-6a5033afc3c8e0d5d12d709b35b306b6ea1f70e8.zip
Implemented action buttons with ng-template!!!
Diffstat (limited to 'ufund-ui/src/app/components/need-list/need-list.component.html')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.html21
1 files changed, 3 insertions, 18 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.html b/ufund-ui/src/app/components/need-list/need-list.component.html
index b19c33d..ffed91d 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.html
+++ b/ufund-ui/src/app/components/need-list/need-list.component.html
@@ -20,24 +20,9 @@
<progress [value]="need.current" [max]="need.maxGoal"></progress>
</div>
</div>
-
-<!-- <div class="actionArea">-->
-<!-- <button *ngIf="isHelper()" (click)="add(need)">-->
-<!-- <span class="icon">add</span>Add To Basket-->
-<!-- </button>-->
-<!-- <button *ngIf="isManager()" (click)="select(need)">-->
-<!-- <span class="icon">edit</span>Edit Need-->
-<!-- </button>-->
-<!-- <button *ngIf="isManager()" (click)="delete(need.id)" >-->
-<!-- <span class="icon">delete</span>Delete Need-->
-<!-- </button>-->
-<!-- </div>-->
-<!-- <div class="actionArea">-->
-<!-- <input type="number" placeholder="Quantity" min="1" id={{need.id}} class="contribution">-->
-<!-- <button class="removeNeed" title="delete need" (click)="this.usersService.removeNeed(need.id)">-->
-<!-- <span class="icon">delete</span> Remove from Basket-->
-<!-- </button>-->
-<!-- </div>-->
+ <div *ngIf="actionArea" class="actionArea">
+ <ng-container [ngTemplateOutlet]="actionArea" [ngTemplateOutletContext]="{$implicit: need}"/>
+ </div>
</div>
</div>