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 | 8 | 
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>-->  | 
