[ACS-3791] Renaming labels for uploader screen (#8011)

* ACS-3791 Renaming labels for uploader screen

* ACS-3791 Renaming labels for uploader screen
This commit is contained in:
AleksanderSklorz 2022-11-25 14:24:34 +01:00 committed by GitHub
parent b41eb3ff03
commit 63a0ecac34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 18 deletions

View File

@ -137,9 +137,9 @@
"MINIMIZE": "Minimize",
"MAXIMIZE": "Maximize",
"CLOSE": "Close",
"CANCEL_ALL": "Cancel uploads",
"CANCEL_FILE": "Cancel upload",
"REMOVE_FILE": "Remove uploaded file"
"STOP_ALL": "Stop uploads",
"STOP_FILE": "Stop upload",
"UPLOAD_SUCCESSFUL": "Upload successful"
},
"STATUS": {
"FILE_CANCELED_STATUS": "Canceled",
@ -151,8 +151,8 @@
"CONTINUE": "No"
},
"MESSAGE": {
"TITLE": "Cancel Upload",
"TEXT": "Stop uploading and remove files already uploaded."
"TITLE": "Stop Upload",
"TEXT": "Stop and cancel all in-progress and pending uploads."
}
},
"ARIA-LABEL": {
@ -161,10 +161,10 @@
"DIALOG_MAXIMIZE": "Maximize upload dialog",
"DIALOG_MINIMIZE": "Minimize upload dialog",
"DIALOG_CLOSE": "Close upload dialog",
"CANCEL_ALL": "Cancel all uploading files",
"REMOVE_FILE": "Remove uploaded file {{ file }}",
"CANCEL_FILE": "Cancel scheduled file {{ file }}",
"CANCEL_FILE_UPLOAD": "Cancel file upload {{ file }}",
"STOP_ALL": "Stop uploads",
"UPLOAD_SUCCESSFUL": "Uploaded successfully file {{ file }}",
"STOP_FILE": "Stop file {{ file }}",
"STOP_FILE_UPLOAD": "Stop file upload {{ file }}",
"UPLOAD_FILE_ERROR": "Upload error {{ error }}",
"CONFIRMATION": {
"CANCEL": "Confirm cancel",

View File

@ -84,12 +84,12 @@
<footer class="adf-upload-dialog__actions" *ngIf="!isConfirmation">
<button
id="adf-upload-dialog-cancel-all"
[attr.aria-label]="'ADF_FILE_UPLOAD.ARIA-LABEL.CANCEL_ALL' | translate"
[attr.aria-label]="'ADF_FILE_UPLOAD.ARIA-LABEL.STOP_ALL' | translate"
color="primary"
mat-button
*ngIf="canShowCancelAll()"
(click)="toggleConfirmation()"
>{{ 'ADF_FILE_UPLOAD.BUTTON.CANCEL_ALL' | translate }}</button>
>{{ 'ADF_FILE_UPLOAD.BUTTON.STOP_ALL' | translate }}</button>
<button
id="adf-upload-dialog-close"

View File

@ -28,9 +28,9 @@
(click)="onCancel(file)"
data-automation-id="cancel-upload-progress"
*ngIf="isUploading()"
[attr.aria-label]="'ADF_FILE_UPLOAD.ARIA-LABEL.CANCEL_FILE_UPLOAD' | translate: { file: file.name }"
[attr.aria-label]="'ADF_FILE_UPLOAD.ARIA-LABEL.STOP_FILE_UPLOAD' | translate: { file: file.name }"
class="adf-file-uploading-row__group adf-file-uploading-row__group--toggle"
title="{{ 'ADF_FILE_UPLOAD.BUTTON.CANCEL_FILE' | translate }}">
title="{{ 'ADF_FILE_UPLOAD.BUTTON.STOP_FILE' | translate }}">
<span class="adf-file-uploading-row__status" *ngIf="!toggleIcon.isToggled">
{{ file.progress.loaded | adfFileSize }} / {{ file.progress.total | adfFileSize }}
@ -47,8 +47,8 @@
#toggleIcon="toggleIcon"
*ngIf="isUploadComplete()"
class="adf-file-uploading-row__group"
[attr.aria-label]="'ADF_FILE_UPLOAD.ARIA-LABEL.REMOVE_FILE' | translate: { file: file.name }"
title="{{ 'ADF_FILE_UPLOAD.BUTTON.REMOVE_FILE' | translate }}">
[attr.aria-label]="'ADF_FILE_UPLOAD.ARIA-LABEL.UPLOAD_SUCCESSFUL' | translate: { file: file.name }"
title="{{ 'ADF_FILE_UPLOAD.BUTTON.UPLOAD_SUCCESSFUL' | translate }}">
<mat-icon
class="adf-file-uploading-row__status adf-file-uploading-row__status--done">
@ -77,8 +77,8 @@
(click)="onCancel(file)"
data-automation-id="cancel-upload-queue"
class="adf-file-uploading-row__group"
title="{{ 'ADF_FILE_UPLOAD.BUTTON.CANCEL_FILE' | translate }}"
[attr.aria-label]="'ADF_FILE_UPLOAD.ARIA-LABEL.CANCEL_FILE' | translate: { file: file.name }">
title="{{ 'ADF_FILE_UPLOAD.BUTTON.STOP_FILE' | translate }}"
[attr.aria-label]="'ADF_FILE_UPLOAD.ARIA-LABEL.STOP_FILE' | translate: { file: file.name }">
<mat-icon
*ngIf="!toggleIconCancel.isToggled"
class="adf-file-uploading-row__status adf-file-uploading-row__status--pending">

View File

@ -109,6 +109,6 @@ describe('FileUploadingListRowComponent', () => {
await fixture.whenStable();
const cancelButton: HTMLDivElement = fixture.debugElement.query(By.css('[data-automation-id="cancel-upload-progress"]')).nativeElement;
expect(cancelButton.title).toBe('ADF_FILE_UPLOAD.BUTTON.CANCEL_FILE');
expect(cancelButton.title).toBe('ADF_FILE_UPLOAD.BUTTON.STOP_FILE');
});
});