1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

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 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} />