fix(frontend): Revert app upload input (#1330)

* fix(frontend): Revert app upload input

* fix default value
This commit is contained in:
Ádám Kovács
2023-03-27 11:51:30 +02:00
committed by GitHub
parent 75306c8316
commit fa457bb709
2 changed files with 3 additions and 1 deletions
@@ -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}