From b1248d99ba0f8a35d2fbfd2cfca132b738ba99cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Fri, 26 Feb 2021 15:12:44 +0100 Subject: [PATCH] final touches to get drawer working correctly in automations --- .../automation/SetupPanel/AutomationBindingPanel.svelte | 2 -- .../automation/SetupPanel/AutomationBlockSetup.svelte | 6 ++---- .../src/components/automation/SetupPanel/RowSelector.svelte | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte index e26b61a7c8..e459545712 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte @@ -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") diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte index 9183ac8ae0..2cd00d9ec0 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte @@ -47,8 +47,6 @@ } return bindings } - - $: console.log('Bindings in Block Setup: ', bindings)
{block.name}
@@ -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'} @@ -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} diff --git a/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte b/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte index f7eff97583..4244a0bced 100644 --- a/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte +++ b/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte @@ -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} />