Skip to content

Commit baf9315

Browse files
Add reconfigure field
1 parent 9cafbc4 commit baf9315

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

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

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,37 @@ const basicInformationTabSchema = (availableCatalogs, tenantTree, roleAllows, zo
6262
is: 'embedded_workflow',
6363
},
6464
},
65+
{
66+
component: componentTypes.SELECT,
67+
id: 'reconfigure_entry_point_type',
68+
name: 'reconfigure_entry_point_type',
69+
label: __('Reconfigure Entry Point'),
70+
initialValue: 'embedded_automate',
71+
options: [{ value: 'embedded_automate', label: __('Embedded Automate') }, { value: 'embedded_workflow', label: __('Embedded Workflow') }],
72+
},
73+
{
74+
component: componentTypes.TEXT_FIELD,
75+
id: 'reconfigure_entry_point_automate',
76+
name: 'reconfigure_entry_point_automate',
77+
label: __('Reconfigure Entry Point'),
78+
condition: {
79+
when: 'reconfigure_entry_point_type',
80+
is: 'embedded_automate',
81+
},
82+
},
83+
{
84+
component: 'embedded-entry-point',
85+
id: 'reconfigure_entry_point_workflow',
86+
name: 'reconfigure_entry_point_workflow',
87+
label: 'Reconfigure Entry Point',
88+
field: 'fqname',
89+
selected: '',
90+
type: 'provision',
91+
condition: {
92+
when: 'reconfigure_entry_point_type',
93+
is: 'embedded_workflow',
94+
},
95+
},
6596
{
6697
component: componentTypes.SELECT,
6798
id: 'retirement_entry_point_type',
@@ -276,7 +307,7 @@ const provisionTabSchema = (
276307
name: 'config_info.provision.dialog_type',
277308
label: __('Dialog'),
278309
options: [{ value: 'useExisting', label: __('Use Existing') }, { value: 'createNew', label: __('Create New') }],
279-
},
310+
},
280311
{
281312
component: componentTypes.SELECT,
282313
id: 'config_info.provision.dialog_id',

0 commit comments

Comments
 (0)