mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
Fixed build error
This commit is contained in:
@@ -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>
|
||||
|
@@ -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();
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user