mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
nit FileDownload
This commit is contained in:
@@ -627,7 +627,7 @@
|
||||
>
|
||||
</button>
|
||||
{:else if !result?.disable_download}
|
||||
<FileDownload s3object={result} />
|
||||
<FileDownload {workspaceId} s3object={result} />
|
||||
<button
|
||||
class="text-secondary underline text-2xs whitespace-nowrap"
|
||||
on:click={() => {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
import { base } from '$lib/base'
|
||||
|
||||
export let s3object: any
|
||||
export let workspaceId: string | undefined = undefined
|
||||
</script>
|
||||
|
||||
<a
|
||||
@@ -11,9 +12,9 @@
|
||||
border border-dashed border-gray-400 hover:border-blue-500
|
||||
focus-within:border-blue-500 hover:bg-blue-50 dark:hover:bg-frost-900 focus-within:bg-blue-50
|
||||
duration-200 rounded-lg p-1 gap-2"
|
||||
href={`${base}/api/w/${$workspaceStore}/job_helpers/download_s3_file?file_key=${s3object?.s3}${
|
||||
s3object?.storage ? `&storage=${s3object.storage}` : ''
|
||||
}`}
|
||||
href={`${base}/api/w/${workspaceId ?? $workspaceStore}/job_helpers/download_s3_file?file_key=${
|
||||
s3object?.s3
|
||||
}${s3object?.storage ? `&storage=${s3object.storage}` : ''}`}
|
||||
download={s3object?.s3.split('/').pop() ?? 'unnamed_download.file'}
|
||||
>
|
||||
<Download />
|
||||
|
||||
Reference in New Issue
Block a user