Add bulk download button for filesystem
This commit is contained in:
@@ -94,7 +94,11 @@ const keydown = e => {
|
||||
};
|
||||
|
||||
const download = () => {
|
||||
download_frame.src = fs_path_url(state.base.path) + "?attach"
|
||||
if (state.base.type === "file") {
|
||||
download_frame.src = fs_path_url(state.base.path) + "?attach"
|
||||
} else if (state.base.type === "dir") {
|
||||
download_frame.src = fs_path_url(state.base.path) + "?bulk_download"
|
||||
}
|
||||
}
|
||||
|
||||
const search = async () => {
|
||||
|
@@ -112,12 +112,10 @@ let expand = e => {
|
||||
|
||||
<div class="separator hidden_horizontal"></div>
|
||||
|
||||
{#if state.base.type === "file"}
|
||||
<button on:click={() => dispatch("download")}>
|
||||
<i class="icon">save</i>
|
||||
<span>Download</span>
|
||||
</button>
|
||||
{/if}
|
||||
<button on:click={() => dispatch("download")}>
|
||||
<i class="icon">save</i>
|
||||
<span>Download</span>
|
||||
</button>
|
||||
|
||||
{#if share_url !== ""}
|
||||
<button on:click={copy_link} class:button_highlight={link_copied}>
|
||||
|
Reference in New Issue
Block a user