Browse Source

Fixing automation issue - now autocolumns hidden there too.

gh-pages
mike12345567 6 years ago
parent
commit
1c577349d4
  1. 30
      packages/builder/src/components/automation/SetupPanel/RowSelector.svelte

30
packages/builder/src/components/automation/SetupPanel/RowSelector.svelte

@ -30,20 +30,22 @@
{#if schemaFields.length} {#if schemaFields.length}
<div class="schema-fields"> <div class="schema-fields">
{#each schemaFields as [field, schema]} {#each schemaFields as [field, schema]}
{#if schemaHasOptions(schema)} {#if !schema.autocolumn}
<Select label={field} extraThin secondary bind:value={value[field]}> {#if schemaHasOptions(schema)}
<option value="">Choose an option</option> <Select label={field} extraThin secondary bind:value={value[field]}>
{#each schema.constraints.inclusion as option} <option value="">Choose an option</option>
<option value={option}>{option}</option> {#each schema.constraints.inclusion as option}
{/each} <option value={option}>{option}</option>
</Select> {/each}
{:else if schema.type === 'string' || schema.type === 'number'} </Select>
<BindableInput {:else if schema.type === 'string' || schema.type === 'number'}
extraThin <BindableInput
bind:value={value[field]} extraThin
label={field} bind:value={value[field]}
type="string" label={field}
{bindings} /> type="string"
{bindings} />
{/if}
{/if} {/if}
{/each} {/each}
</div> </div>

Loading…
Cancel
Save