소스 검색

WebClient: fix move and copy

Regression introduced in fc023748c10eab307b0c17d36e57e21dc1a3c332

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 1 년 전
부모
커밋
1620e16b89
1개의 변경된 파일3개의 추가작업 그리고 7개의 파일을 삭제
  1. 3 7
      templates/webclient/files.html

+ 3 - 7
templates/webclient/files.html

@@ -1470,9 +1470,7 @@ explicit grant from the SFTPGo Team ([email protected]).
 
         let filesArray = [];
         for (let i = 0; i < items.length; i++){
-            filesArray.push({
-                name: items[i].targetName
-            });
+            filesArray.push(items[i].targetName);
         }
 
         CheckExist.fire({
@@ -1622,9 +1620,7 @@ explicit grant from the SFTPGo Team ([email protected]).
 
         let filesArray = [];
         for (let i = 0; i < items.length; i++){
-            filesArray.push({
-                name: items[i].targetName
-            });
+            filesArray.push(items[i].targetName);
         }
 
         CheckExist.fire({
@@ -1863,7 +1859,7 @@ explicit grant from the SFTPGo Team ([email protected]).
 
         CheckExist.fire({
             operation: "move",
-            files: [{name: newName}],
+            files: [newName],
             path: '{{.CurrentDir}}'
         }).then((result)=>{
             if (result.error) {