mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 08:02:40 +00:00
fix disabled input file input
This commit is contained in:
@@ -137,6 +137,7 @@
|
||||
customResourceType="s3"
|
||||
customClass={css?.container?.class}
|
||||
customStyle={css?.container?.style}
|
||||
disabled={resolvedConfigS3?.disabled}
|
||||
{fileUploads}
|
||||
{workspace}
|
||||
on:addition={(evt) => {
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
export let workspace: string | undefined = undefined
|
||||
export let fileUploads: Writable<FileUploadData[]> = writable([])
|
||||
export let appPath: string | undefined = undefined
|
||||
export let disabled = false
|
||||
export let computeForceViewerPolicies:
|
||||
| (() =>
|
||||
| {
|
||||
@@ -441,6 +442,7 @@
|
||||
</div>
|
||||
{:else}
|
||||
<FileInput
|
||||
{disabled}
|
||||
accept={acceptedFileTypes?.join(',')}
|
||||
multiple={allowMultiple}
|
||||
returnFileNames
|
||||
@@ -452,7 +454,7 @@
|
||||
style={customStyle}
|
||||
defaultFile={defaultValue}
|
||||
>
|
||||
{containerText}
|
||||
{containerText}{#if disabled}<br />(Disabled){/if}
|
||||
</FileInput>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user