diff --git a/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.html b/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.html index 2002c55528..702ce75e7f 100644 --- a/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.html +++ b/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.html @@ -2,7 +2,7 @@ [className]="'btn btn-secondary ' + wrapperClass" ngbTooltip="{{'submission.workflow.tasks.claimed.return_help' | translate}}" [disabled]="processingReturnToPool" - (click)="returnToPool()"> + (click)="confirmReturnToPool()"> {{'submission.workflow.tasks.generic.processing' | translate}} {{'submission.workflow.tasks.claimed.return' | translate}} diff --git a/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.spec.ts b/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.spec.ts index fcb370595a..d461d9e055 100644 --- a/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.spec.ts +++ b/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.spec.ts @@ -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(); diff --git a/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.ts b/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.ts index 381b8f1afe..1dfe91eb5b 100644 --- a/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.ts +++ b/src/app/shared/mydspace-actions/claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component.ts @@ -24,9 +24,9 @@ export class ClaimedTaskActionsReturnToPoolComponent { @Output() returnToPool: EventEmitter = new EventEmitter(); /** - * Emit approve event + * Emit returnToPool event */ - confirmApprove() { + confirmReturnToPool() { this.returnToPool.emit(); } }