[ADF-1712] The <adf-task-header component displays a Requeue button for none pooled tasks (#2680)

* [ADF-1712] The <adf-task-header component displays a Requeue button for none pooled tasks .

* Refactored task header component.

* [ADF-1712]The <adf-task-header component displays a Requeue button for none pooled tasks.

* Refactored task header component.
* Added test cases.

* [ADF-1712] The <adf-task-header component displays a Requeue button for none pooled tasks.

* Changed method name .
This commit is contained in:
siva kumar
2017-11-22 16:48:14 +05:30
committed by Eugenio Romano
parent 3ccccbec4e
commit 7cf0a1c839
4 changed files with 109 additions and 99 deletions

View File

@@ -4,7 +4,7 @@
</mat-card-content>
<mat-card-actions class="adf-controls">
<button *ngIf="isTaskClaimedByCurrentUser()" mat-button data-automation-id="header-unclaim-button" id="unclaim-task" (click)="unclaimTask(taskDetails.id)" class="adf-claim-controls">{{ 'ADF_TASK_LIST.DETAILS.BUTTON.UNCLAIM' | translate }}
<button *ngIf="isTaskClaimedByCandidateMember()" mat-button data-automation-id="header-unclaim-button" id="unclaim-task" (click)="unclaimTask(taskDetails.id)" class="adf-claim-controls">{{ 'ADF_TASK_LIST.DETAILS.BUTTON.UNCLAIM' | translate }}
</button>
<button *ngIf="isTaskClaimable()" mat-button data-automation-id="header-claim-button" id="claim-task" (click)="claimTask(taskDetails.id)" class="adf-claim-controls">{{ 'ADF_TASK_LIST.DETAILS.BUTTON.CLAIM' | translate }}
</button>