Skip to content

Commit 784f1b3

Browse files
committed
[frontend] add revoked to vulnerability edition form (#14106)
1 parent eec8631 commit 784f1b3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

opencti-platform/opencti-front/src/private/components/arsenal/vulnerabilities/VulnerabilityEditionOverview.jsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ const VulnerabilityEditionOverviewComponent = (props) => {
9797
const basicShape = yupShapeConditionalRequired({
9898
name: Yup.string().trim().min(2),
9999
description: Yup.string().nullable(),
100+
revoked: Yup.boolean(),
100101
confidence: Yup.number().min(0).max(100).nullable(),
101102
x_opencti_score: Yup.number().min(0).max(100).nullable(),
102103
x_opencti_cisa_kev: Yup.boolean().nullable(),
@@ -202,6 +203,7 @@ const VulnerabilityEditionOverviewComponent = (props) => {
202203
'references',
203204
'description',
204205
'confidence',
206+
'revoked',
205207
'x_opencti_score',
206208
'x_opencti_cwe',
207209
'x_opencti_first_seen_active',
@@ -299,6 +301,22 @@ const VulnerabilityEditionOverviewComponent = (props) => {
299301
/>
300302
)}
301303
/>
304+
<Field
305+
component={SwitchField}
306+
type="checkbox"
307+
name="revoked"
308+
label={t_i18n('Revoked')}
309+
fullWidth
310+
onFocus={editor.changeFocus}
311+
onChange={handleSubmitField}
312+
containerstyle={{ marginTop: 20 }}
313+
helperText={(
314+
<SubscriptionFocus
315+
context={context}
316+
fieldName="revoked"
317+
/>
318+
)}
319+
/>
302320
<Field
303321
component={SwitchField}
304322
type="checkbox"
@@ -428,6 +446,7 @@ export default createFragmentContainer(VulnerabilityEditionOverviewComponent, {
428446
name
429447
description
430448
confidence
449+
revoked
431450
x_opencti_cwe
432451
x_opencti_first_seen_active
433452
x_opencti_cisa_kev

0 commit comments

Comments
 (0)