mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
[CST-5253] Fix view item button for claim task in the mydspace results list
This commit is contained in:
@@ -4,12 +4,10 @@
|
|||||||
(processCompleted)="this.processCompleted.emit($event)">
|
(processCompleted)="this.processCompleted.emit($event)">
|
||||||
</ds-claimed-task-actions-loader>
|
</ds-claimed-task-actions-loader>
|
||||||
|
|
||||||
<!-- <ng-container *ngIf="hasViewAction(workflowAction)"> -->
|
|
||||||
<button class="btn btn-primary workflow-view" ngbTooltip="{{'submission.workflow.generic.view-help' | translate}}"
|
<button class="btn btn-primary workflow-view" ngbTooltip="{{'submission.workflow.generic.view-help' | translate}}"
|
||||||
[routerLink]="[getWorkflowItemViewRoute((workflowitem$ | async))]">
|
[routerLink]="[getWorkflowItemViewRoute((workflowitem$ | async))]">
|
||||||
<i class="fa fa-info-circle"></i> {{"submission.workflow.generic.view" | translate}}
|
<i class="fa fa-info-circle"></i> {{"submission.workflow.generic.view" | translate}}
|
||||||
</button>
|
</button>
|
||||||
<!-- </ng-container> -->
|
|
||||||
|
|
||||||
<ds-claimed-task-actions-loader [option]="returnToPoolOption" [object]="object"
|
<ds-claimed-task-actions-loader [option]="returnToPoolOption" [object]="object"
|
||||||
(processCompleted)="this.processCompleted.emit($event)">
|
(processCompleted)="this.processCompleted.emit($event)">
|
||||||
|
@@ -161,7 +161,6 @@ describe('ClaimedTaskActionsComponent', () => {
|
|||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('when edit options is not available', () => {
|
|
||||||
it('should display a view button', waitForAsync(() => {
|
it('should display a view button', waitForAsync(() => {
|
||||||
component.object = null;
|
component.object = null;
|
||||||
component.initObjects(mockObject);
|
component.initObjects(mockObject);
|
||||||
@@ -179,7 +178,5 @@ describe('ClaimedTaskActionsComponent', () => {
|
|||||||
const href = component.getWorkflowItemViewRoute(workflowitem);
|
const href = component.getWorkflowItemViewRoute(workflowitem);
|
||||||
expect(href).toEqual('/workflowitems/333/view');
|
expect(href).toEqual('/workflowitems/333/view');
|
||||||
}));
|
}));
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@@ -102,14 +102,6 @@ export class ClaimedTaskActionsComponent extends MyDSpaceActionsComponent<Claime
|
|||||||
this.actionRD$ = object.action;
|
this.actionRD$ = object.action;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if claimed task actions should display a view item button.
|
|
||||||
* @param workflowAction
|
|
||||||
*/
|
|
||||||
hasViewAction(workflowAction: WorkflowAction) {
|
|
||||||
return !workflowAction?.options.includes('submit_edit_metadata');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the workflowitem view route.
|
* Get the workflowitem view route.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user