diff --git a/src/app/features/files/components/move-file-dialog/move-file-dialog.component.ts b/src/app/features/files/components/move-file-dialog/move-file-dialog.component.ts index 6b7016433..8e1ed529c 100644 --- a/src/app/features/files/components/move-file-dialog/move-file-dialog.component.ts +++ b/src/app/features/files/components/move-file-dialog/move-file-dialog.component.ts @@ -182,6 +182,8 @@ export class MoveFileDialogComponent { } this.isFilesUpdating.set(true); + const headerKey = this.isMoveAction ? 'files.dialogs.moveFile.movingHeader' : 'files.dialogs.moveFile.copingHeader'; + this.config.header = this.translateService.instant(headerKey); const action = this.config.data.action; const files: FileModel[] = this.config.data.files; const totalFiles = files.length; @@ -209,6 +211,7 @@ export class MoveFileDialogComponent { this.openReplaceMoveDialog(conflictFiles, path, action); } else { this.showToast(action); + this.config.header = this.translateService.instant('files.dialogs.moveFile.title'); this.completeMove(); } } diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 58c0b767d..8390339d9 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -1157,7 +1157,9 @@ "storage": "OSF Storage", "pathError": "Path is not specified!", "success": "Successfully moved.", - "noMovePermission": "Cannot move or copy to this file provider" + "noMovePermission": "Cannot move or copy to this file provider", + "movingHeader": "Moving...", + "copingHeader": "Coping..." }, "copyFile": { "success": "File successfully copied."