@@ -35,47 +35,47 @@ export const WisdomModal = (props: IProps) => {
35
35
if ( props . scope == 'namespace' ) {
36
36
titleWillBeUsed = (
37
37
< Trans >
38
- Namespace < b > { name } </ b > is opted in to Wisdom .
38
+ Namespace < b > { name } </ b > is opted in to Ansible Lightspeed .
39
39
</ Trans >
40
40
) ;
41
41
titleWillNotBeUsed = (
42
42
< Trans >
43
- Namespace < b > { name } </ b > is opted out of Wisdom .
43
+ Namespace < b > { name } </ b > is opted out of Ansible Lightspeed .
44
44
</ Trans >
45
45
) ;
46
46
areYouSureToOptIn = (
47
47
< Trans >
48
- Are you sure you want to opt the following namespace in to Wisdom?
48
+ The following namespace will be opted in to Ansible Lightspeed:
49
49
</ Trans >
50
50
) ;
51
51
areYouSureToOptOut = (
52
52
< Trans >
53
- Are you sure you want to opt the following namespace out of Wisdom?
53
+ Are you sure you want to opt the following namespace out of Ansible
54
+ Lightspeed?
54
55
</ Trans >
55
56
) ;
56
57
}
57
58
58
59
if ( props . scope == 'legacy_namespace' ) {
59
60
titleWillBeUsed = (
60
61
< Trans >
61
- Legacy namespace < b > { name } </ b > is opted in to Wisdom .
62
+ Legacy namespace < b > { name } </ b > is opted in to Ansible Lightspeed .
62
63
</ Trans >
63
64
) ;
64
65
titleWillNotBeUsed = (
65
66
< Trans >
66
- Legacy namespace < b > { name } </ b > is opted out of Wisdom .
67
+ Legacy namespace < b > { name } </ b > is opted out of Ansible Lightspeed .
67
68
</ Trans >
68
69
) ;
69
70
areYouSureToOptIn = (
70
71
< Trans >
71
- Are you sure you want to opt the following legacy namespace in to
72
- Wisdom?
72
+ The following legacy namespace will be opted in to Ansible Lightspeed:
73
73
</ Trans >
74
74
) ;
75
75
areYouSureToOptOut = (
76
76
< Trans >
77
77
Are you sure you want to opt the following legacy namespace out of
78
- Wisdom ?
78
+ Ansible Lightspeed ?
79
79
</ Trans >
80
80
) ;
81
81
}
@@ -91,7 +91,7 @@ export const WisdomModal = (props: IProps) => {
91
91
} )
92
92
. catch ( ( { response : { status, statusText } } ) => {
93
93
addAlert ( {
94
- title : t `Failed to load Wisdom information.` ,
94
+ title : t `Failed to load Ansible Lightspeed information.` ,
95
95
variant : 'danger' ,
96
96
description : errorMessage ( status , statusText ) ,
97
97
} ) ;
@@ -121,7 +121,7 @@ export const WisdomModal = (props: IProps) => {
121
121
} )
122
122
. catch ( ( { response : { status, statusText } } ) => {
123
123
addAlert ( {
124
- title : t `Failed to opt in to Wisdom .` ,
124
+ title : t `Failed to opt in to Ansible Lightspeed .` ,
125
125
variant : 'danger' ,
126
126
description : errorMessage ( status , statusText ) ,
127
127
} ) ;
@@ -137,7 +137,7 @@ export const WisdomModal = (props: IProps) => {
137
137
} )
138
138
. catch ( ( { response : { status, statusText } } ) => {
139
139
addAlert ( {
140
- title : t `Failed to opt out of Wisdom .` ,
140
+ title : t `Failed to opt out of Ansible Lightspeed .` ,
141
141
variant : 'danger' ,
142
142
description : errorMessage ( status , statusText ) ,
143
143
} ) ;
@@ -155,7 +155,7 @@ export const WisdomModal = (props: IProps) => {
155
155
onClick = { removeFromDenyIndex }
156
156
variant = { ButtonVariant . primary }
157
157
>
158
- { t `Opt in to Wisdom ` }
158
+ { t `Opt in to Ansible Lightspeed ` }
159
159
</ Button > ,
160
160
) ;
161
161
} else {
@@ -165,7 +165,7 @@ export const WisdomModal = (props: IProps) => {
165
165
onClick = { addToDenyIndex }
166
166
variant = { ButtonVariant . primary }
167
167
>
168
- { t `Opt out of Wisdom ` }
168
+ { t `Opt out of Ansible Lightspeed ` }
169
169
</ Button > ,
170
170
) ;
171
171
}
@@ -177,20 +177,21 @@ export const WisdomModal = (props: IProps) => {
177
177
) ;
178
178
}
179
179
180
- const expandableTitle = t `Learn more about Ansible Wisdom. ` ;
180
+ const expandableTitle = t `Additional details ` ;
181
181
return (
182
182
< Modal
183
183
actions = { actions }
184
184
isOpen = { true }
185
185
onClose = { props . closeAction }
186
186
title = {
187
187
loading
188
- ? t `Wisdom settings`
188
+ ? t `Ansible Lightspeed settings`
189
189
: isInDenyIndex
190
- ? t `Opt in to Wisdom `
191
- : t `Opt out of Wisdom `
190
+ ? t `Opt in to Ansible Lightspeed `
191
+ : t `Opt out of Ansible Lightspeed `
192
192
}
193
193
variant = 'small'
194
+ titleIconVariant = { isInDenyIndex ? null : 'warning' }
194
195
>
195
196
< AlertList
196
197
alerts = { alerts }
@@ -201,29 +202,28 @@ export const WisdomModal = (props: IProps) => {
201
202
) : (
202
203
< div >
203
204
< div >
204
- { ! loading && isInDenyIndex ? areYouSureToOptIn : areYouSureToOptOut }
205
- </ div >
206
- < br />
207
- < div >
205
+ < Trans >
206
+ < p >
207
+ Red Hat is working on exciting new Ansible content development
208
+ capabilities within the context of{ ' ' }
209
+ < a
210
+ href = 'https://www.redhat.com/en/engage/project-wisdom'
211
+ target = '_blank'
212
+ rel = 'noreferrer'
213
+ >
214
+ Ansible Lightspeed
215
+ </ a > { ' ' }
216
+ < ExternalLinkAltIcon /> to help other automators build Ansible
217
+ content.
218
+ </ p >
219
+ </ Trans >
220
+ < br />
208
221
< ExpandableSection
209
222
toggleTextExpanded = { expandableTitle }
210
223
toggleTextCollapsed = { expandableTitle }
211
224
>
212
225
< div >
213
226
< Trans >
214
- < p >
215
- Red Hat is working on exciting new Ansible content
216
- development capabilities within the context of{ ' ' }
217
- < a
218
- href = 'https://www.redhat.com/en/engage/project-wisdom'
219
- target = '_blank'
220
- rel = 'noreferrer'
221
- >
222
- Project Wisdom
223
- </ a > { ' ' }
224
- < ExternalLinkAltIcon /> to help other automators build
225
- Ansible content.
226
- </ p >
227
227
< p >
228
228
Your roles and collections may be used as training data for
229
229
a machine learning model that provides Ansible automation
@@ -240,6 +240,12 @@ export const WisdomModal = (props: IProps) => {
240
240
</ div >
241
241
</ ExpandableSection >
242
242
</ div >
243
+ < br />
244
+ < div >
245
+ { ! loading && isInDenyIndex ? areYouSureToOptIn : areYouSureToOptOut }
246
+ </ div >
247
+ < br />
248
+ { props . reference }
243
249
</ div >
244
250
) }
245
251
</ Modal >
0 commit comments