mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge pull request #2092 from CrisGuzmanS/issues/1186-470750
Buttons have same name but different actions.
This commit is contained in:
@@ -2,18 +2,21 @@
|
||||
|
||||
<button class="btn btn-primary workflow-view mt-1 mb-3" data-test="view-btn"
|
||||
ngbTooltip="{{'submission.workspace.generic.view-help' | translate}}"
|
||||
[attr.aria-label]="'submission.workspace.generic.view-help' | translate"
|
||||
[routerLink]="[getWorkspaceItemViewRoute(object)]">
|
||||
<i class="fa fa-info-circle"></i> {{"submission.workspace.generic.view" | translate}}
|
||||
</button>
|
||||
|
||||
<a class="btn btn-primary mt-1 mb-3" id="{{'edit_' + object.id}}"
|
||||
ngbTooltip="{{'submission.workflow.generic.edit-help' | translate}}"
|
||||
[attr.aria-label]="'submission.workflow.generic.edit-help' | translate"
|
||||
[routerLink]="['/workspaceitems/' + object.id + '/edit']" role="button">
|
||||
<i class="fa fa-edit"></i> {{'submission.workflow.generic.edit' | translate}}
|
||||
</a>
|
||||
|
||||
<button type="button" id="{{'delete_' + object.id}}" class="btn btn-danger mt-1 mb-3"
|
||||
ngbTooltip="{{'submission.workflow.generic.delete-help' | translate}}"
|
||||
[attr.aria-label]="'submission.workflow.generic.delete-help' | translate"
|
||||
(click)="$event.preventDefault();confirmDiscard(content)">
|
||||
<span *ngIf="(processingDelete$ | async)"><i class='fas fa-circle-notch fa-spin'></i>
|
||||
{{'submission.workflow.tasks.generic.processing' | translate}}</span>
|
||||
|
@@ -4694,7 +4694,7 @@
|
||||
|
||||
"submission.workflow.generic.delete": "Delete",
|
||||
|
||||
"submission.workflow.generic.delete-help": "If you would to discard this item, select \"Delete\". You will then be asked to confirm it.",
|
||||
"submission.workflow.generic.delete-help": "Select this option to discard this item. You will then be asked to confirm it.",
|
||||
|
||||
"submission.workflow.generic.edit": "Edit",
|
||||
|
||||
|
Reference in New Issue
Block a user