File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
features/files/components/move-file-dialog Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 4
4
</ div >
5
5
} @else {
6
6
< div class ="flex flex-column gap-2 ">
7
- < div class ="flex gap-2 ">
8
- < h2 class ="font-normal "> {{ storageName }}</ h2 >
9
- </ div >
7
+ < h2 class ="font-normal "> {{ storageName }}</ h2 >
10
8
11
9
< div class ="files-table flex flex-column ">
12
10
@if (previousFolder()) {
@@ -71,7 +69,7 @@ <h3 class="font-normal text-no-transform">{{ 'files.emptyState' | translate }}</
71
69
72
70
< p-button
73
71
[disabled] ="isFolderSame() || isLoading() || isFilesUpdating() "
74
- [label] ="(config.data.action === 'move' ? 'common.buttons.move' : 'common.buttons.copy') | translate "
72
+ [label] ="(isMoveAction ? 'common.buttons.move' : 'common.buttons.copy') | translate "
75
73
(onClick) ="moveFile() "
76
74
> </ p-button >
77
75
</ div >
Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ export class MoveFileDialogComponent {
79
79
return this . currentFolder ( ) ?. id === parentFolder ?. id ;
80
80
} ) ;
81
81
82
+ get isMoveAction ( ) {
83
+ return this . config . data . action === 'move' ;
84
+ }
85
+
82
86
constructor ( ) {
83
87
this . initPreviousFolder ( ) ;
84
88
const filesLink = this . currentFolder ( ) ?. relationships ?. filesLink ;
Original file line number Diff line number Diff line change @@ -26,9 +26,7 @@ export class FileMenuComponent {
26
26
menu = viewChild . required < TieredMenu > ( 'menu' ) ;
27
27
action = output < FileMenuAction > ( ) ;
28
28
29
- hasViewOnly = computed ( ( ) => {
30
- return hasViewOnlyParam ( this . router ) ;
31
- } ) ;
29
+ hasViewOnly = computed ( ( ) => hasViewOnlyParam ( this . router ) ) ;
32
30
33
31
private readonly allMenuItems : MenuItem [ ] = [
34
32
{
@@ -95,7 +93,7 @@ export class FileMenuComponent {
95
93
} ,
96
94
{
97
95
id : FileMenuType . Copy ,
98
- label : 'common.buttons.copy ' ,
96
+ label : 'common.buttons.copyTo ' ,
99
97
icon : 'fas fa-copy' ,
100
98
command : ( ) => this . emitAction ( FileMenuType . Copy ) ,
101
99
} ,
Original file line number Diff line number Diff line change 13
13
"close" : " Close" ,
14
14
"download" : " Download" ,
15
15
"copy" : " Copy" ,
16
+ "copyTo" : " Copy to" ,
16
17
"move" : " Move" ,
17
18
"rename" : " Rename" ,
18
19
"share" : " Share" ,
1091
1092
"pathError" : " Path is not specified!"
1092
1093
},
1093
1094
"copyFile" : {
1094
- "title" : " Copy file"
1095
+ "title" : " Select location to copy file to "
1095
1096
},
1096
1097
"deleteFile" : {
1097
1098
"title" : " Delete File" ,
You can’t perform that action at this time.
0 commit comments