Download config
This commit is contained in:
parent
3ffba9faf8
commit
496679f3eb
|
@ -1,17 +1,23 @@
|
||||||
<script>
|
<script>
|
||||||
import { Label } from "@budibase/bbui"
|
import { Label } from "@budibase/bbui"
|
||||||
|
import { FieldType } from "@budibase/types"
|
||||||
import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte"
|
import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte"
|
||||||
|
|
||||||
export let parameters
|
export let parameters
|
||||||
export let bindings = []
|
export let bindings = []
|
||||||
|
|
||||||
|
$: fileBindings = bindings?.filter(
|
||||||
|
b => b.fieldSchema?.type === FieldType.ATTACHMENT
|
||||||
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="root">
|
<div class="root">
|
||||||
<Label small>File</Label>
|
<Label small>File</Label>
|
||||||
<DrawerBindableInput
|
<DrawerBindableInput
|
||||||
title="State value"
|
title="State value"
|
||||||
{bindings}
|
bindings={fileBindings}
|
||||||
value={parameters.value}
|
value={parameters.value}
|
||||||
|
allowHelpers={false}
|
||||||
on:change={e => (parameters.value = e.detail)}
|
on:change={e => (parameters.value = e.detail)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue