Skip to content

Commit

Permalink
Add alexa semantic mappings parameters visible condition (#1258)
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <jeremy.setton@gmail.com>
  • Loading branch information
jsetton authored Jan 3, 2022
1 parent c96d5c1 commit 18d7283
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default {
default: defaultValue,
placeholder: placeholder.replace(/,/g, '\n'),
multiple: true,
advanced: !!defaultValue
advanced: !!defaultValue,
visible: (_, config) => !config.nonControllable
}),
capabilityNames: (defaultValue, placeholder) => ({
name: 'capabilityNames',
Expand Down Expand Up @@ -301,7 +302,8 @@ export default {
description: `Each mapping formatted as ${getSemanticFormat('state', format)} (${docLink('Semantic Extensions')})`,
type: 'TEXT',
placeholder: placeholder.replace(/,/g, '\n'),
multiple: true
multiple: true,
visible: (_, config) => !!config.retrievable
}),
stepSpeaker: () => ({
name: 'stepSpeaker',
Expand Down

0 comments on commit 18d7283

Please sign in to comment.