Browse Source

lint

pull/4023/head
Martin McKeaveney 5 years ago
parent
commit
9b96a0f06d
  1. 11
      packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte
  2. 4
      packages/builder/src/components/automation/SetupPanel/QueryParamSelector.svelte

11
packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte

@ -91,14 +91,17 @@
{:else if value.customType === 'code'}
<CodeEditorModal>
<pre>{JSON.stringify(bindings, null, 2)}</pre>
<Label small grey>Note: The result of the very last statement of this script will be returned and available as the "value" property in following automation blocks.</Label>
<Label small grey>
Note: The result of the very last statement of this script will be
returned and available as the "value" property in following automation
blocks.
</Label>
<Editor
mode="javascript"
on:change={e => {
on:change={e => {
block.inputs[key] = e.detail.value
}}
value={block.inputs[key]}
/>
value={block.inputs[key]} />
</CodeEditorModal>
{:else if value.type === 'string' || value.type === 'number'}
<DrawerBindableInput

4
packages/builder/src/components/automation/SetupPanel/QueryParamSelector.svelte

@ -32,8 +32,8 @@
panel={AutomationBindingPanel}
extraThin
value={value[field.name]}
on:change={e => {
value[field.name] = e.detail
on:change={e => {
value[field.name] = e.detail
}}
label={field.name}
type="string"

Loading…
Cancel
Save