Skip to content

Commit eaa54df

Browse files
authored
Merge pull request DSpace#2092 from CrisGuzmanS/issues/1186-470750
Buttons have same name but different actions.
2 parents 00c5636 + a2bd3be commit eaa54df

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/app/shared/mydspace-actions/workspaceitem/workspaceitem-actions.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22

33
<button class="btn btn-primary workflow-view mt-1 mb-3" data-test="view-btn"
44
ngbTooltip="{{'submission.workspace.generic.view-help' | translate}}"
5+
[attr.aria-label]="'submission.workspace.generic.view-help' | translate"
56
[routerLink]="[getWorkspaceItemViewRoute(object)]">
67
<i class="fa fa-info-circle"></i> {{"submission.workspace.generic.view" | translate}}
78
</button>
89

910
<a class="btn btn-primary mt-1 mb-3" id="{{'edit_' + object.id}}"
1011
ngbTooltip="{{'submission.workflow.generic.edit-help' | translate}}"
12+
[attr.aria-label]="'submission.workflow.generic.edit-help' | translate"
1113
[routerLink]="['/workspaceitems/' + object.id + '/edit']" role="button">
1214
<i class="fa fa-edit"></i> {{'submission.workflow.generic.edit' | translate}}
1315
</a>
1416

1517
<button type="button" id="{{'delete_' + object.id}}" class="btn btn-danger mt-1 mb-3"
1618
ngbTooltip="{{'submission.workflow.generic.delete-help' | translate}}"
19+
[attr.aria-label]="'submission.workflow.generic.delete-help' | translate"
1720
(click)="$event.preventDefault();confirmDiscard(content)">
1821
<span *ngIf="(processingDelete$ | async)"><i class='fas fa-circle-notch fa-spin'></i>
1922
{{'submission.workflow.tasks.generic.processing' | translate}}</span>
@@ -39,4 +42,4 @@ <h4 class="modal-title text-danger">{{'submission.general.discard.confirm.title'
3942
<button type="button" id="delete_confirm" class="btn btn-danger"
4043
(click)="c('ok')">{{'submission.general.discard.confirm.submit' | translate}}</button>
4144
</div>
42-
</ng-template>
45+
</ng-template>

src/assets/i18n/en.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4694,7 +4694,7 @@
46944694

46954695
"submission.workflow.generic.delete": "Delete",
46964696

4697-
"submission.workflow.generic.delete-help": "If you would to discard this item, select \"Delete\". You will then be asked to confirm it.",
4697+
"submission.workflow.generic.delete-help": "Select this option to discard this item. You will then be asked to confirm it.",
46984698

46994699
"submission.workflow.generic.edit": "Edit",
47004700

0 commit comments

Comments
 (0)