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

View File

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

View File

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

View File

@ -109,6 +109,6 @@ describe('FileUploadingListRowComponent', () => {
await fixture.whenStable(); await fixture.whenStable();
const cancelButton: HTMLDivElement = fixture.debugElement.query(By.css('[data-automation-id="cancel-upload-progress"]')).nativeElement; 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');
}); });
}); });