Download config

This commit is contained in:
Adria Navarro 2024-03-22 10:38:09 +01:00
parent 3ffba9faf8
commit 496679f3eb
1 changed files with 7 additions and 1 deletions

View File

@ -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>