Fixed build error

This commit is contained in:
Giuseppe Digilio
2019-04-03 14:26:06 +02:00
parent 25d955c804
commit af2a995e24
3 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
[className]="'btn btn-secondary ' + wrapperClass"
ngbTooltip="{{'submission.workflow.tasks.claimed.return_help' | translate}}"
[disabled]="processingReturnToPool"
(click)="returnToPool()">
(click)="confirmReturnToPool()">
<span *ngIf="processingReturnToPool"><i class='fas fa-circle-notch fa-spin'></i> {{'submission.workflow.tasks.generic.processing' | translate}}</span>
<span *ngIf="!processingReturnToPool"><i class="fa fa-undo"></i> {{'submission.workflow.tasks.claimed.return' | translate}}</span>
</button>

View File

@@ -56,7 +56,7 @@ describe('ClaimedTaskActionsReturnToPoolComponent', () => {
it('should emit return to pool event', () => {
spyOn(component.returnToPool, 'emit');
component.confirmApprove();
component.confirmReturnToPool();
fixture.detectChanges();
expect(component.returnToPool.emit).toHaveBeenCalled();

View File

@@ -24,9 +24,9 @@ export class ClaimedTaskActionsReturnToPoolComponent {
@Output() returnToPool: EventEmitter<any> = new EventEmitter<any>();
/**
* Emit approve event
* Emit returnToPool event
*/
confirmApprove() {
confirmReturnToPool() {
this.returnToPool.emit();
}
}