mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-10 00:05:27 +00:00
fix(frontend): Revert app upload input (#1330)
* fix(frontend): Revert app upload input * fix default value
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
export let subFieldType: InputType | undefined
|
||||
export let format: string | undefined
|
||||
export let selectOptions: string[] | undefined
|
||||
export let fileUpload: { accept: string; convertTo: string } | undefined = undefined
|
||||
export let placeholder: string | undefined
|
||||
|
||||
const { connectingInput } = getContext<AppViewerContext>('AppViewerContext')
|
||||
@@ -95,7 +96,7 @@
|
||||
<svelte:fragment slot="text">User Input</svelte:fragment>
|
||||
</Popover>
|
||||
{/if}
|
||||
{#if 'fileUpload' in componentInput}
|
||||
{#if fileUpload}
|
||||
<Popover placement="bottom" notClickable disapperTimoout={0}>
|
||||
<ToggleButton
|
||||
position="center"
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
selectOptions={meta?.['selectOptions']}
|
||||
tooltip={meta?.['tooltip']}
|
||||
onlyStatic={meta?.['onlyStatic']}
|
||||
fileUpload={meta?.['fileUpload']}
|
||||
placeholder={meta?.['placeholder']}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user