mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
WebClient: fix move and copy
Regression introduced in fc023748c1
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -1470,9 +1470,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||||||
|
|
||||||
let filesArray = [];
|
let filesArray = [];
|
||||||
for (let i = 0; i < items.length; i++){
|
for (let i = 0; i < items.length; i++){
|
||||||
filesArray.push({
|
filesArray.push(items[i].targetName);
|
||||||
name: items[i].targetName
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckExist.fire({
|
CheckExist.fire({
|
||||||
@@ -1622,9 +1620,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||||||
|
|
||||||
let filesArray = [];
|
let filesArray = [];
|
||||||
for (let i = 0; i < items.length; i++){
|
for (let i = 0; i < items.length; i++){
|
||||||
filesArray.push({
|
filesArray.push(items[i].targetName);
|
||||||
name: items[i].targetName
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckExist.fire({
|
CheckExist.fire({
|
||||||
@@ -1863,7 +1859,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||||||
|
|
||||||
CheckExist.fire({
|
CheckExist.fire({
|
||||||
operation: "move",
|
operation: "move",
|
||||||
files: [{name: newName}],
|
files: [newName],
|
||||||
path: '{{.CurrentDir}}'
|
path: '{{.CurrentDir}}'
|
||||||
}).then((result)=>{
|
}).then((result)=>{
|
||||||
if (result.error) {
|
if (result.error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user