1
0
Fork 0
mirror of synced 2024-08-18 03:21:29 +12:00

Rename some usages of button actions to events

This commit is contained in:
Andrew Kingston 2022-08-18 13:43:32 +01:00
parent 1841677e0d
commit 7b6cef8794
2 changed files with 5 additions and 5 deletions

View file

@ -502,11 +502,11 @@ const getRoleBindings = () => {
} }
/** /**
* Gets all bindable properties exposed in a button action flow up until * Gets all bindable properties exposed in an event action flow up until
* the specified action ID, as well as context provided for the action * the specified action ID, as well as context provided for the action
* setting as a whole by the component. * setting as a whole by the component.
*/ */
export const getButtonContextBindings = ( export const getEventContextBindings = (
asset, asset,
componentId, componentId,
settingKey, settingKey,

View file

@ -11,7 +11,7 @@
} from "@budibase/bbui" } from "@budibase/bbui"
import { getAvailableActions } from "./index" import { getAvailableActions } from "./index"
import { generate } from "shortid" import { generate } from "shortid"
import { getButtonContextBindings } from "builderStore/dataBinding" import { getEventContextBindings } from "builderStore/dataBinding"
import { currentAsset, store } from "builderStore" import { currentAsset, store } from "builderStore"
const flipDurationMs = 150 const flipDurationMs = 150
@ -41,14 +41,14 @@
}, {}) }, {})
// These are ephemeral bindings which only exist while executing actions // These are ephemeral bindings which only exist while executing actions
$: buttonContextBindings = getButtonContextBindings( $: eventContexBindings = getEventContextBindings(
$currentAsset, $currentAsset,
$store.selectedComponentId, $store.selectedComponentId,
key, key,
actions, actions,
selectedAction?.id selectedAction?.id
) )
$: allBindings = buttonContextBindings.concat(bindings) $: allBindings = eventContexBindings.concat(bindings)
// Assign a unique ID to each action // Assign a unique ID to each action
$: { $: {