Skip to content

Commit e9a6a69

Browse files
committed
add option to add new dialog for terraform template
1 parent 71102ea commit e9a6a69

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/javascript/components/terraform-template-catalog-form/terraform-template-catalog-form.schema.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,23 @@ const provisionTabSchema = (
206206
keyLabel: __('Variable'),
207207
valueLabel: __('Default value'),
208208
},
209+
{
210+
component: componentTypes.RADIO,
211+
id: 'config_info.provision.dialog_type',
212+
name: 'config_info.provision.dialog_type',
213+
label: __('Dialog'),
214+
options: [{ value: 'useExisting', label: __('Use Existing') }, { value: 'createNew', label: __('Create New') }],
215+
},
209216
{
210217
component: componentTypes.SELECT,
211218
id: 'config_info.provision.dialog_id',
212219
name: 'config_info.provision.dialog_id',
213220
label: __('Existing Dialog'),
214221
options: transformGeneralOptions(dialogs),
222+
condition: {
223+
when: 'config_info.provision.dialog_type',
224+
is: 'useExisting',
225+
},
215226
includeEmpty: true,
216227
isRequired: true,
217228
validate: [{ type: validatorTypes.REQUIRED }],

0 commit comments

Comments
 (0)