[ADF-2320] Complete button is visible on an involved task (#3033)

* * [ADF-2320] Conditionally showing Complete button for task without form

* * [ADF-2320] Refactored the coditions
This commit is contained in:
Deepak Paul
2018-03-08 15:32:41 +05:30
committed by Eugenio Romano
parent 6afdbcad7c
commit 1fade9b23b
3 changed files with 36 additions and 5 deletions

View File

@@ -28,7 +28,7 @@
[showTitle]="showFormTitle"
[showRefreshButton]="showFormRefreshButton"
[showCompleteButton]="showFormCompleteButton"
[disableCompleteButton]="!isCompleteButtonVisible()"
[disableCompleteButton]="!isCompleteButtonEnabled()"
[showSaveButton]="isSaveButtonVisible()"
[readOnly]="readOnlyForm"
[fieldValidators]="fieldValidators"
@@ -45,7 +45,7 @@
{{ 'ADF_TASK_LIST.DETAILS.MESSAGES.CLAIM' | translate }}
</div>
<button mat-raised-button class="activiti-task-details__action-button"
*ngIf="!hasFormKey() && isTaskActive()" (click)="onComplete()">
*ngIf="isCompleteButtonVisible()" (click)="onComplete()">
{{ 'ADF_TASK_LIST.DETAILS.BUTTON.COMPLETE' | translate }}
</button>
</div>