[ADF-2319] added a check for delete checklist button (#3382)

This commit is contained in:
Vito
2018-05-23 19:07:59 +01:00
committed by Eugenio Romano
parent 44a39b76a5
commit d62c2992ed
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>