Skip to content
Snippets Groups Projects
Commit 336569fc authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Rename fixes

parent d9c98fa2
No related branches found
No related tags found
No related merge requests found
Pipeline #1948 passed
......@@ -142,8 +142,8 @@ public class NodesController extends BaseController {
String direction = getRequiredParam(params, "direction");
Transfer transfer = new Transfer();
transfer.setTarget(target);
transfer.setDirection(direction);
transfer.setTarget("vos://" + authority + target);
transfer.setDirection("vos://" + authority + direction);
JobSummary job = client.startTransferJob(transfer);
......
......@@ -53,7 +53,7 @@ export default {
} else if (/[<>?":\\/`|'*]/.test(this.newName)) {
this.newNameError = "Name contains an illegal character. Following characters are not allowed: < > ? \" : \\ / | ' * `";
} else {
let parentPath = this.oldName.substring(0, this.oldName.lastIndexOf('/') + 1);
let parentPath = this.nodeToRename.substring(0, this.nodeToRename.lastIndexOf('/') + 1);
this.$store.dispatch('moveNode', {
target: parentPath + this.oldName,
direction: parentPath + this.newName
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment