Skip to content

Commit

Permalink
Feat/create action input on property option page 4887 (#476)
Browse files Browse the repository at this point in the history
* feat: add createActionInputVariable

* fix: add value key

* feat: add createActionInputVariable config on property option

* fix: align createActionInputvariable configurations

---------

Co-authored-by: Jordy Quak <[email protected]>
  • Loading branch information
ingmar-stipriaan and Jordy Quak authored Dec 16, 2024
1 parent 444adc4 commit 07c616a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __tests__/validations/component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,9 @@ test('Success when the reconfigure configuration options of the prefabs are vali
type: 'TEXT',
value: 'New property',
},
createActionInputVariable: {
type: 'TEXT',
},
manageObjectValues: {
selectableObjectKey: true,
buttonLabel: 'Manage something',
Expand Down
5 changes: 5 additions & 0 deletions src/validations/prefab/componentOption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ const optionConfigurationSchema = Joi.when('type', {
type: Joi.string(),
value: Joi.string().allow(''),
}),
createActionInputVariable: Joi.object({
name: Joi.string().optional(),
type: Joi.string().required(),
value: Joi.string().allow('').optional(),
}),
manageObjectValues: Joi.object({
selectableObjectKey: Joi.boolean().optional(),
buttonLabel: Joi.string().optional(),
Expand Down

0 comments on commit 07c616a

Please sign in to comment.