[ADF-2238] added a condition to avoid checklist delete for completed task

This commit is contained in:
VitoAlbano
2018-05-23 12:48:03 +01:00
parent 049e514541
commit fc2227ea04
2 changed files with 17 additions and 1 deletions

View File

@@ -14,7 +14,7 @@
<mat-chip-list class="mat-chip-list-stacked">
<mat-chip id="check-{{check.id}}" class="adf-checklist-chip" *ngFor="let check of checklist">
<span>{{check.name}}</span>
<button *ngIf="!readOnly" mat-icon-button type="button" class="adf-checklist-cancel-button" (click)="delete(check.id)">
<button *ngIf="!readOnly && !check.endDate" mat-icon-button type="button" class="adf-checklist-cancel-button" (click)="delete(check.id)">
<mat-icon id="remove-{{check.id}}" matChipRemove>cancel</mat-icon>
</button>
</mat-chip>