Zip download done.

This commit is contained in:
Leo Vasanko
2023-11-07 15:57:42 -08:00
parent 2695fc67f3
commit 4fd769cce2
2 changed files with 3 additions and 2 deletions

View File

@@ -138,7 +138,8 @@ const download = async () => {
}
}
// Otherwise, zip and download
linkdl(`/zip/${Array.from(sel.keys).join('+')}/download.zip`)
const name = sel.keys.length === 1 ? sel.docs[sel.keys[0]].name : 'download'
linkdl(`/zip/${Array.from(sel.keys).join('+')}/${name}.zip`)
documentStore.selected.clear()
}
</script>