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 16629903c1
commit 3923af7c34
3 changed files with 3 additions and 9 deletions

View File

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

View File

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

View File

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