final touches to get drawer working correctly in automations

This commit is contained in:
Keviin Åberg Kultalahti 2021-02-26 15:12:44 +01:00
parent 2f764bad9b
commit b1248d99ba
3 changed files with 3 additions and 9 deletions

View File

@ -17,7 +17,6 @@
export let bindingDrawer export let bindingDrawer
export let valid = true export let valid = true
export let bindings = [] export let bindings = []
$: console.log('Bindings in Drawer: ', bindings)
let originalValue = value let originalValue = value
let helpers = handlebarsCompletions() let helpers = handlebarsCompletions()
@ -31,7 +30,6 @@
$currentAsset, $currentAsset,
$store.selectedComponentId $store.selectedComponentId
) )
$: console.log(value)
$: dispatch("update", value) $: dispatch("update", value)
$: searchRgx = new RegExp(search, "ig") $: searchRgx = new RegExp(search, "ig")

View File

@ -47,8 +47,6 @@
} }
return bindings return bindings
} }
$: console.log('Bindings in Block Setup: ', bindings)
</script> </script>
<div class="block-label">{block.name}</div> <div class="block-label">{block.name}</div>
@ -72,7 +70,7 @@
type={'email'} type={'email'}
extraThin extraThin
value={block.inputs[key]} value={block.inputs[key]}
on:update={e => block.inputs[key] = e.detail} on:change={e => block.inputs[key] = e.detail}
{bindings} /> {bindings} />
{:else if value.customType === 'table'} {:else if value.customType === 'table'}
<TableSelector bind:value={block.inputs[key]} /> <TableSelector bind:value={block.inputs[key]} />
@ -88,7 +86,7 @@
type={value.customType} type={value.customType}
extraThin extraThin
value={block.inputs[key]} value={block.inputs[key]}
on:update={e => block.inputs[key] = e.detail} on:change={e => block.inputs[key] = e.detail}
{bindings} /> {bindings} />
{/if} {/if}
</div> </div>

View File

@ -7,8 +7,6 @@
export let value export let value
export let bindings export let bindings
$: console.log('Bindings in Row Selector: ', bindings)
$: table = $backendUiStore.tables.find(table => table._id === value?.tableId) $: table = $backendUiStore.tables.find(table => table._id === value?.tableId)
$: schemaFields = Object.entries(table?.schema ?? {}) $: schemaFields = Object.entries(table?.schema ?? {})
@ -46,7 +44,7 @@
panel={AutomationBindingPanel} panel={AutomationBindingPanel}
extraThin extraThin
value={value[field]} value={value[field]}
on:update={e => value[field] = e.detail} on:change={e => value[field] = e.detail}
label={field} label={field}
type="string" type="string"
{bindings} /> {bindings} />