mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
fix (rename): issue with renaming folder
This commit is contained in:
parent
fe324601d1
commit
aea5150e43
1 changed files with 3 additions and 2 deletions
|
|
@ -150,10 +150,11 @@ function componentLeft(render, { $scroll, getSelectionLength$ }) {
|
|||
basename(path.replace(new RegExp("/$"), "")),
|
||||
)).pipe(rxjs.mergeMap((val) => {
|
||||
const [basepath] = extractPath(path);
|
||||
const newpath = basepath + val + (path.slice(-1) === "/" ? "/" : "");
|
||||
clearSelection();
|
||||
clearCache(path);
|
||||
clearCache(basepath + val);
|
||||
return mv(path, basepath + val);
|
||||
clearCache(newpath);
|
||||
return mv(path, newpath);
|
||||
}));
|
||||
})),
|
||||
onClick(qs($page, `[data-action="delete"]`)).pipe(rxjs.mergeMap(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue