Skip to content

Commit 375b1c9

Browse files
Move component to basic tab
1 parent 5e5133e commit 375b1c9

File tree

2 files changed

+65
-65
lines changed

2 files changed

+65
-65
lines changed

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

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,70 @@ const basicInformationTabSchema = (availableCatalogs, tenantTree, roleAllows, zo
3030
id: 'description',
3131
label: __('Description'),
3232
},
33+
{
34+
component: componentTypes.SELECT,
35+
id: 'provisioning_entry_point_type',
36+
name: 'provisioning_entry_point_type',
37+
label: __('Provisioning Entry Point'),
38+
initialValue: 'embedded_automate',
39+
options: [{ value: 'embedded_automate', label: __('Embedded Automate') }, { value: 'embedded_workflow', label: __('Embedded Workflow') }],
40+
},
41+
{
42+
component: componentTypes.TEXT_FIELD,
43+
id: 'provisioning_entry_point_automate',
44+
name: 'provisioning_entry_point_automate',
45+
label: __('Provisioning Entry Point'),
46+
initialValue: '/Service/Generic/StateMachines/GenericLifecycle/provision',
47+
condition: {
48+
when: 'provisioning_entry_point_type',
49+
is: 'embedded_automate',
50+
},
51+
},
52+
{
53+
component: 'embedded-entry-point',
54+
id: 'provisioning_entry_point_workflow',
55+
name: 'provisioning_entry_point_workflow',
56+
label: 'Provisioning Entry Point',
57+
field: 'fqname',
58+
selected: '',
59+
type: 'provision',
60+
condition: {
61+
when: 'provisioning_entry_point_type',
62+
is: 'embedded_workflow',
63+
},
64+
},
65+
{
66+
component: componentTypes.SELECT,
67+
id: 'retirement_entry_point_type',
68+
name: 'retirement_entry_point_type',
69+
label: __('Retirement 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: 'retirement_entry_point_automate',
76+
name: 'retirement_entry_point_automate',
77+
label: __('Retirement Entry Point'),
78+
initialValue: '/Service/Generic/StateMachines/GenericLifecycle/Retire_Basic_Resource',
79+
condition: {
80+
when: 'retirement_entry_point_type',
81+
is: 'embedded_automate',
82+
},
83+
},
84+
{
85+
component: 'embedded-entry-point',
86+
id: 'retirement_entry_point_workflow',
87+
name: 'retirement_entry_point_workflow',
88+
label: 'Retirement Entry Point',
89+
field: 'retire_fqname',
90+
selected: '',
91+
type: 'retire',
92+
condition: {
93+
when: 'retirement_entry_point_type',
94+
is: 'embedded_workflow',
95+
},
96+
},
3397
{
3498
component: componentTypes.CHECKBOX,
3599
name: 'display',
@@ -109,70 +173,6 @@ const provisionTabSchema = (
109173
name: 'provisioning-tab',
110174
label: __('Provisioning'),
111175
fields: [
112-
{
113-
component: componentTypes.SELECT,
114-
id: 'provisioning_entry_point_type',
115-
name: 'provisioning_entry_point_type',
116-
label: __('Provisioning Entry Point'),
117-
initialValue: 'embedded_automate',
118-
options: [{ value: 'embedded_automate', label: __('Embedded Automate') }, { value: 'embedded_workflow', label: __('Embedded Workflow') }],
119-
},
120-
{
121-
component: componentTypes.TEXT_FIELD,
122-
id: 'provisioning_entry_point_automate',
123-
name: 'provisioning_entry_point_automate',
124-
label: __('Provisioning Entry Point'),
125-
initialValue: '/Service/Generic/StateMachines/GenericLifecycle/provision',
126-
condition: {
127-
when: 'provisioning_entry_point_type',
128-
is: 'embedded_automate',
129-
},
130-
},
131-
{
132-
component: 'provision-entry-point',
133-
id: 'provisioning_entry_point_workflow',
134-
name: 'provisioning_entry_point_workflow',
135-
label: 'Provisioning Entry Point',
136-
field: 'fqname',
137-
selected: '',
138-
type: 'provision',
139-
condition: {
140-
when: 'provisioning_entry_point_type',
141-
is: 'embedded_workflow',
142-
},
143-
},
144-
{
145-
component: componentTypes.SELECT,
146-
id: 'retirement_entry_point_type',
147-
name: 'retirement_entry_point_type',
148-
label: __('Retirement Entry Point'),
149-
initialValue: 'embedded_automate',
150-
options: [{ value: 'embedded_automate', label: __('Embedded Automate') }, { value: 'embedded_workflow', label: __('Embedded Workflow') }],
151-
},
152-
{
153-
component: componentTypes.TEXT_FIELD,
154-
id: 'retirement_entry_point_automate',
155-
name: 'retirement_entry_point_automate',
156-
label: __('Retirement Entry Point'),
157-
initialValue: '/Service/Generic/StateMachines/GenericLifecycle/Retire_Basic_Resource',
158-
condition: {
159-
when: 'retirement_entry_point_type',
160-
is: 'embedded_automate',
161-
},
162-
},
163-
{
164-
component: 'provision-entry-point',
165-
id: 'retirement_entry_point_workflow',
166-
name: 'retirement_entry_point_workflow',
167-
label: 'Retirement Entry Point',
168-
field: 'retire_fqname',
169-
selected: '',
170-
type: 'retire',
171-
condition: {
172-
when: 'provisioning_entry_point_type',
173-
is: 'embedded_workflow',
174-
},
175-
},
176176
{
177177
component: componentTypes.SELECT,
178178
id: 'config_info.provision.repository_id',

app/javascript/forms/mappers/componentMapper.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const mapper = {
1919
'edit-password-field': EditPasswordField,
2020
'file-upload': FileUploadComponent,
2121
'password-field': PasswordField,
22-
'provision-entry-point': EmbeddedEntryPoint,
22+
'embedded-entry-point': EmbeddedEntryPoint,
2323
'validate-credentials': AsyncCredentials,
2424
'tree-view': TreeViewField,
2525
'tree-selector': TreeViewSelector,

0 commit comments

Comments
 (0)