mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
fix (new): broken new file/folder button
This commit is contained in:
parent
9f275e967b
commit
f1048299f6
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ export default async function(render) {
|
||||||
preventDefault(),
|
preventDefault(),
|
||||||
rxjs.mergeMap(() => {
|
rxjs.mergeMap(() => {
|
||||||
window.dispatchEvent(new KeyboardEvent("keydown", { keyCode: 27 })); // close
|
window.dispatchEvent(new KeyboardEvent("keydown", { keyCode: 27 })); // close
|
||||||
const type = $input.nextSibling.getAttribute("name");
|
const type = $input.nextElementSibling.getAttribute("name");
|
||||||
if (type === "file") return touch(currentPath() + $input.value);
|
if (type === "file") return touch(currentPath() + $input.value);
|
||||||
return mkdir(currentPath() + $input.value + "/");
|
return mkdir(currentPath() + $input.value + "/");
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue