Add directory uploader

This commit is contained in:
2023-05-27 15:50:44 +02:00
parent 82ebf18cdb
commit 71538e5d7a
20 changed files with 565 additions and 150 deletions

View File

@@ -17,7 +17,11 @@ let create_dir = () => {
).then(resp => {
new_dir_name = "" // Clear input field
}).catch(err => {
alert("Error: "+err)
if (err.value && err.value === "node_already_exists") {
alert("A directory with this name already exists")
} else {
alert(err)
}
}).finally(() => {
dispatch("done")
})