Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const VulnerabilityEditionOverviewComponent = (props) => {
const basicShape = yupShapeConditionalRequired({
name: Yup.string().trim().min(2),
description: Yup.string().nullable(),
revoked: Yup.boolean(),
confidence: Yup.number().min(0).max(100).nullable(),
x_opencti_score: Yup.number().min(0).max(100).nullable(),
x_opencti_cisa_kev: Yup.boolean().nullable(),
Expand Down Expand Up @@ -202,6 +203,7 @@ const VulnerabilityEditionOverviewComponent = (props) => {
'references',
'description',
'confidence',
'revoked',
'x_opencti_score',
'x_opencti_cwe',
'x_opencti_first_seen_active',
Expand Down Expand Up @@ -299,6 +301,22 @@ const VulnerabilityEditionOverviewComponent = (props) => {
/>
)}
/>
<Field
component={SwitchField}
type="checkbox"
name="revoked"
label={t_i18n('Revoked')}
fullWidth
onFocus={editor.changeFocus}
onChange={handleSubmitField}
containerstyle={{ marginTop: 20 }}
helperText={(
<SubscriptionFocus
context={context}
fieldName="revoked"
/>
)}
/>
<Field
component={SwitchField}
type="checkbox"
Expand Down Expand Up @@ -428,6 +446,7 @@ export default createFragmentContainer(VulnerabilityEditionOverviewComponent, {
name
description
confidence
revoked
x_opencti_cwe
x_opencti_first_seen_active
x_opencti_cisa_kev
Expand Down