fix: copying files with special characters

This commit is contained in:
Ramires Viana committed 2021-04-15 11:50:30 +00:00
1 parent ba7e71a7c3
commit 20ebbf6611
2 files changed
+13 -15

No files matched your search

@@ -151,13 +151,13 @@ export default {
for (let i of this.selected) {
items.push({
from: this.req.items[i].url,
to: this.url + this.req.items[i].name,
to: this.url + encodeURIComponent(this.req.items[i].name),
name: this.req.items[i].name,
});
}
let base = el.querySelector(".name").innerHTML + "/";
let path = this.$route.path + base;
// Get url from ListingItem instance
let path = el.__vue__.url;
let baseItems = (await api.fetch(path)).items;
let action = (overwrite, rename) => {