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 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")
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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} />
|
||||||
|
|
Loading…
Reference in New Issue