Fix bindings not appearing in certain button actions
This commit is contained in:
parent
cc38b0af0f
commit
546ca8c37b
|
@ -9,6 +9,7 @@
|
|||
|
||||
export let value = []
|
||||
export let name
|
||||
export let bindings
|
||||
|
||||
let drawer
|
||||
|
||||
|
@ -57,5 +58,5 @@
|
|||
Define what actions to run.
|
||||
</svelte:fragment>
|
||||
<Button cta slot="buttons" on:click={saveEventData}>Save</Button>
|
||||
<EventEditor slot="body" bind:actions={value} eventType={name} />
|
||||
<EventEditor slot="body" bind:actions={value} eventType={name} {bindings} />
|
||||
</Drawer>
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
import SaveFields from "./SaveFields.svelte"
|
||||
|
||||
export let parameters
|
||||
export let bindings = []
|
||||
|
||||
$: dataProviderComponents = getDataProviderComponents(
|
||||
$currentAsset,
|
||||
|
@ -70,6 +71,7 @@
|
|||
parameterFields={parameters.fields}
|
||||
{schemaFields}
|
||||
on:change={onFieldsChanged}
|
||||
{bindings}
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
@ -3,13 +3,14 @@
|
|||
import { automationStore } from "builderStore"
|
||||
import SaveFields from "./SaveFields.svelte"
|
||||
|
||||
export let parameters = {}
|
||||
export let bindings = []
|
||||
|
||||
const AUTOMATION_STATUS = {
|
||||
NEW: "new",
|
||||
EXISTING: "existing",
|
||||
}
|
||||
|
||||
export let parameters = {}
|
||||
|
||||
let automationStatus = parameters.automationId
|
||||
? AUTOMATION_STATUS.EXISTING
|
||||
: AUTOMATION_STATUS.NEW
|
||||
|
@ -109,6 +110,7 @@
|
|||
parameterFields={parameters.fields}
|
||||
fieldLabel="Field"
|
||||
on:change={onFieldsChanged}
|
||||
{bindings}
|
||||
/>
|
||||
{/key}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue