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 18, 2024
1 parent 71102ea commit e9a6a69
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 e9a6a69

Please sign in to comment.