|
|
@ -502,11 +502,11 @@ const getRoleBindings = () => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Gets all bindable properties exposed in a button actions 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, |
|
|
@ -520,10 +520,7 @@ export const getButtonContextBindings = ( |
|
|
const component = findComponent(asset.props, componentId) |
|
|
const component = findComponent(asset.props, componentId) |
|
|
const settings = getComponentSettings(component?._component) |
|
|
const settings = getComponentSettings(component?._component) |
|
|
const eventSetting = settings.find(setting => setting.key === settingKey) |
|
|
const eventSetting = settings.find(setting => setting.key === settingKey) |
|
|
if (!eventSetting) { |
|
|
if (eventSetting?.context?.length) { |
|
|
return bindings |
|
|
|
|
|
} |
|
|
|
|
|
if (eventSetting.context?.length) { |
|
|
|
|
|
eventSetting.context.forEach(contextEntry => { |
|
|
eventSetting.context.forEach(contextEntry => { |
|
|
bindings.push({ |
|
|
bindings.push({ |
|
|
readableBinding: contextEntry.label, |
|
|
readableBinding: contextEntry.label, |
|
|
|