make email field bindable in automations

This commit is contained in:
Martin McKeaveney 2021-02-03 13:50:19 +00:00
parent 184f30771c
commit 68aa7bb5f0
1 changed files with 8 additions and 4 deletions

View File

@ -64,7 +64,11 @@
{: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,7 +79,7 @@
<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} />