Skip to content

Commit 028a271

Browse files
1 parent ed89972 commit 028a271

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

src/views/tenant/conditional/DeployCA.js

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'
66
import { CippWizard } from 'src/components/layout'
77
import { WizardTableField } from 'src/components/tables'
88
import PropTypes from 'prop-types'
9-
import { RFFCFormSelect, RFFCFormTextarea } from 'src/components/forms'
9+
import { RFFCFormRadio, RFFCFormSelect, RFFCFormTextarea } from 'src/components/forms'
1010
import { useLazyGenericGetRequestQuery, useLazyGenericPostRequestQuery } from 'src/store/api/app'
1111
import { OnChange } from 'react-final-form-listeners'
1212

@@ -41,7 +41,6 @@ const AddPolicy = () => {
4141
values.TemplateType = values.Type
4242
genericPostRequest({ path: '/api/AddCAPolicy', values: values })
4343
}
44-
/* eslint-disable react/prop-types */
4544
const WhenFieldChanges = ({ field, set }) => (
4645
<Field name={set} subscription={{}}>
4746
{(
@@ -147,6 +146,29 @@ const AddPolicy = () => {
147146
/>
148147
</CCol>
149148
</CRow>
149+
<RFFCFormRadio
150+
value="donotchange"
151+
name="newstate"
152+
label="Do not change state - Template contains the state information"
153+
validate={false}
154+
></RFFCFormRadio>
155+
<RFFCFormRadio
156+
value="Enabled"
157+
name="newstate"
158+
label="Enabled"
159+
validate={false}
160+
></RFFCFormRadio>
161+
<RFFCFormRadio
162+
value="Disabled"
163+
name="newstate"
164+
label="Disabled"
165+
validate={false}
166+
></RFFCFormRadio>
167+
<RFFCFormRadio
168+
value="enabledForReportingButNotEnforced"
169+
name="newstate"
170+
label="Report only"
171+
></RFFCFormRadio>
150172
<hr className="my-4" />
151173
<WhenFieldChanges field="TemplateList" set="rawjson" />
152174
</CippWizard.Page>
@@ -159,7 +181,6 @@ const AddPolicy = () => {
159181
{!postResults.isSuccess && (
160182
<FormSpy>
161183
{(props) => {
162-
/* eslint-disable react/prop-types */
163184
return (
164185
<>
165186
<CRow>

0 commit comments

Comments
 (0)