1
0
Fork 0
mirror of synced 2024-07-09 08:16:34 +12:00

Use select for selecting form to validate in button actions to fix issue showing component ID

This commit is contained in:
Andrew Kingston 2021-02-02 15:38:43 +00:00
parent 772fdfa837
commit aba4b4ea60

View file

@ -1,5 +1,5 @@
<script> <script>
import { DataList, Label } from "@budibase/bbui" import { Select, Label } from "@budibase/bbui"
import { currentAsset, store } from "builderStore" import { currentAsset, store } from "builderStore"
import { getActionProviderComponents } from "builderStore/dataBinding" import { getActionProviderComponents } from "builderStore/dataBinding"
@ -15,14 +15,14 @@
<div class="root"> <div class="root">
<Label size="m" color="dark">Form</Label> <Label size="m" color="dark">Form</Label>
<DataList secondary bind:value={parameters.componentId}> <Select secondary bind:value={parameters.componentId}>
<option value="" /> <option value="" />
{#if actionProviders} {#if actionProviders}
{#each actionProviders as component} {#each actionProviders as component}
<option value={component._id}>{component._instanceName}</option> <option value={component._id}>{component._instanceName}</option>
{/each} {/each}
{/if} {/if}
</DataList> </Select>
</div> </div>
<style> <style>