make email field bindable in automations

This commit is contained in:
Martin McKeaveney 2021-02-03 13:50:19 +00:00
parent efe1cca74b
commit 909ccac598
1 changed files with 8 additions and 4 deletions

View File

@ -62,9 +62,13 @@
{/each} {/each}
</Select> </Select>
{:else if value.customType === 'password'} {:else if value.customType === 'password'}
<Input type="password" extraThin bind:value={block.inputs[key]} /> <Input type="password" extraThin bind:value={block.inputs[key]}/>
{:else if value.customType === 'email'} {:else if value.customType === 'email'}
<Input type="email" extraThin bind:value={block.inputs[key]} /> <BindableInput
type={"email"}
extraThin
bind:value={block.inputs[key]}
{bindings} />
{:else if value.customType === 'table'} {:else if value.customType === 'table'}
<TableSelector bind:value={block.inputs[key]} /> <TableSelector bind:value={block.inputs[key]} />
{:else if value.customType === 'row'} {:else if value.customType === 'row'}
@ -75,10 +79,10 @@
<SchemaSetup bind:value={block.inputs[key]} /> <SchemaSetup bind:value={block.inputs[key]} />
{:else if value.type === 'string' || value.type === 'number'} {:else if value.type === 'string' || value.type === 'number'}
<BindableInput <BindableInput
type="string" type={value.customType}
extraThin extraThin
bind:value={block.inputs[key]} bind:value={block.inputs[key]}
{bindings} /> {bindings} />
{/if} {/if}
</div> </div>
{/each} {/each}