From f473981fbd2e3589dd2c9e80bcdeac8ac99024fd Mon Sep 17 00:00:00 2001 From: nsemets Date: Wed, 1 Oct 2025 13:51:14 +0300 Subject: [PATCH] fix(copy): updated copy titles --- .../move-file-dialog/move-file-dialog.component.html | 6 ++---- .../move-file-dialog/move-file-dialog.component.ts | 4 ++++ src/app/shared/components/file-menu/file-menu.component.ts | 6 ++---- src/assets/i18n/en.json | 3 ++- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/app/features/files/components/move-file-dialog/move-file-dialog.component.html b/src/app/features/files/components/move-file-dialog/move-file-dialog.component.html index d87388996..d964fe923 100644 --- a/src/app/features/files/components/move-file-dialog/move-file-dialog.component.html +++ b/src/app/features/files/components/move-file-dialog/move-file-dialog.component.html @@ -4,9 +4,7 @@ } @else {
-
-

{{ storageName }}

-
+

{{ storageName }}

@if (previousFolder()) { @@ -71,7 +69,7 @@

{{ 'files.emptyState' | translate }}

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 1db8f511f..349080801 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 @@ -79,6 +79,10 @@ export class MoveFileDialogComponent { return this.currentFolder()?.id === parentFolder?.id; }); + get isMoveAction() { + return this.config.data.action === 'move'; + } + constructor() { this.initPreviousFolder(); const filesLink = this.currentFolder()?.relationships?.filesLink; diff --git a/src/app/shared/components/file-menu/file-menu.component.ts b/src/app/shared/components/file-menu/file-menu.component.ts index e452ed774..7f42aa2eb 100644 --- a/src/app/shared/components/file-menu/file-menu.component.ts +++ b/src/app/shared/components/file-menu/file-menu.component.ts @@ -26,9 +26,7 @@ export class FileMenuComponent { menu = viewChild.required('menu'); action = output(); - hasViewOnly = computed(() => { - return hasViewOnlyParam(this.router); - }); + hasViewOnly = computed(() => hasViewOnlyParam(this.router)); private readonly allMenuItems: MenuItem[] = [ { @@ -95,7 +93,7 @@ export class FileMenuComponent { }, { id: FileMenuType.Copy, - label: 'common.buttons.copy', + label: 'common.buttons.copyTo', icon: 'fas fa-copy', command: () => this.emitAction(FileMenuType.Copy), }, diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 5a8809c0e..8a21847ac 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -13,6 +13,7 @@ "close": "Close", "download": "Download", "copy": "Copy", + "copyTo": "Copy to", "move": "Move", "rename": "Rename", "share": "Share", @@ -1091,7 +1092,7 @@ "pathError": "Path is not specified!" }, "copyFile": { - "title": "Copy file" + "title": "Select location to copy file to" }, "deleteFile": { "title": "Delete File",