final touches to get drawer working correctly in automations
This commit is contained in:
parent
2f764bad9b
commit
b1248d99ba
|
@ -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")
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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} />
|
||||
|
|
Loading…
Reference in New Issue