Skip to content

Commit

Permalink
add option to add new dialog for terraform template
Browse files Browse the repository at this point in the history
  • Loading branch information
putmanoj committed Oct 1, 2024
1 parent d612e03 commit a7e7e0e
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,23 @@ const provisionTabSchema = (
keyLabel: __('Variable'),
valueLabel: __('Default value'),
},
{
component: componentTypes.RADIO,
id: 'config_info.provision.dialog_type',
name: 'config_info.provision.dialog_type',
label: __('Dialog'),
options: [{ value: 'useExisting', label: __('Use Existing') }, { value: 'createNew', label: __('Create New') }],
},
{
component: componentTypes.SELECT,
id: 'config_info.provision.dialog_id',
name: 'config_info.provision.dialog_id',
label: __('Existing Dialog'),
options: transformGeneralOptions(dialogs),
condition: {
when: 'config_info.provision.dialog_type',
is: 'useExisting',
},
includeEmpty: true,
isRequired: true,
validate: [{ type: validatorTypes.REQUIRED }],
Expand Down

0 comments on commit a7e7e0e

Please sign in to comment.