Browse Source
Merge pull request #2252 from Budibase/fix/action-bindings
Fix bindings not appearing in certain button actions
gh-pages
Andrew Kingston
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
8 additions and
3 deletions
-
packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventPropertyControl.svelte
-
packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/SaveRow.svelte
-
packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/TriggerAutomation.svelte
|
|
|
@ -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> |
|
|
|
|