Skip to content

Commit 3a49725

Browse files
authored
Merge pull request #697 from mkovalua/feature/ENG---9549
[ENG-9549] implement 'Moving...' / 'Coping' hints  on 'Move' / 'Copy' button click for file moving/coping dialog
2 parents d61483a + fef0531 commit 3a49725

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/app/features/files/components/move-file-dialog/move-file-dialog.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ export class MoveFileDialogComponent {
182182
}
183183

184184
this.isFilesUpdating.set(true);
185+
const headerKey = this.isMoveAction ? 'files.dialogs.moveFile.movingHeader' : 'files.dialogs.moveFile.copingHeader';
186+
this.config.header = this.translateService.instant(headerKey);
185187
const action = this.config.data.action;
186188
const files: FileModel[] = this.config.data.files;
187189
const totalFiles = files.length;
@@ -209,6 +211,7 @@ export class MoveFileDialogComponent {
209211
this.openReplaceMoveDialog(conflictFiles, path, action);
210212
} else {
211213
this.showToast(action);
214+
this.config.header = this.translateService.instant('files.dialogs.moveFile.title');
212215
this.completeMove();
213216
}
214217
}

src/assets/i18n/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,9 @@
11571157
"storage": "OSF Storage",
11581158
"pathError": "Path is not specified!",
11591159
"success": "Successfully moved.",
1160-
"noMovePermission": "Cannot move or copy to this file provider"
1160+
"noMovePermission": "Cannot move or copy to this file provider",
1161+
"movingHeader": "Moving...",
1162+
"copingHeader": "Coping..."
11611163
},
11621164
"copyFile": {
11631165
"success": "File successfully copied."

0 commit comments

Comments
 (0)