@@ -6,7 +6,7 @@ import { faCheck, faExclamationTriangle, faTimes } from '@fortawesome/free-solid
6
6
import { CippWizard } from 'src/components/layout'
7
7
import { WizardTableField } from 'src/components/tables'
8
8
import PropTypes from 'prop-types'
9
- import { RFFCFormSelect , RFFCFormSwitch , RFFSelectSearch } from 'src/components/forms'
9
+ import { Condition , RFFCFormSelect , RFFCFormSwitch , RFFSelectSearch } from 'src/components/forms'
10
10
import { useLazyGenericPostRequestQuery } from 'src/store/api/app'
11
11
import countryList from 'src/data/countryList.json'
12
12
const Error = ( { name } ) => (
@@ -98,53 +98,61 @@ const AlertWizard = () => {
98
98
These alerts will be sent to the user or webhook configured in the CIPP notification
99
99
settings menu.
100
100
</ p >
101
+ < RFFCFormSwitch
102
+ value = { true }
103
+ name = "SetAlerts"
104
+ label = "Setup alerts for the selected tenants"
105
+ />
101
106
< CRow >
102
- < CCol >
103
- < RFFCFormSwitch
104
- value = { true }
105
- name = "MFAAlertUsers"
106
- label = "Alert on users without any form of MFA"
107
- />
108
- < RFFCFormSwitch name = "MFAAdmins" label = "Alert on admins without any form of MFA" />
109
- < RFFCFormSwitch
110
- name = "NoCAConfig"
111
- label = "Alert on tenants without a Conditional Access policy, while having Conditional Access licensing available."
112
- />
113
- < RFFCFormSwitch name = "NewRole" label = "Alert on new users added to any admin role" />
114
- < RFFCFormSwitch name = "AdminPassword" label = "Alert on changed admin Passwords" />
115
- < RFFCFormSwitch
116
- name = "DefenderStatus"
117
- label = "Alert if Defender is not running (Tenant must be on-boarded in Lighthouse)"
118
- />
119
- < RFFCFormSwitch
120
- name = "DefenderMalware"
121
- label = "Alert on Defender Malware found (Tenant must be on-boarded in Lighthouse)"
122
- />
123
- < RFFCFormSwitch name = "QuotaUsed" label = "Alert on 90% mailbox quota used" />
124
- </ CCol >
125
- < CCol >
126
- < RFFCFormSwitch name = "SharePointQuota" label = "Alert on 90% SharePoint quota used" />
127
- < RFFCFormSwitch name = "UnusedLicenses" label = "Alert on unused licenses" />
128
- < RFFCFormSwitch name = "OverusedLicenses" label = "Alert on overused licenses" />
129
- < RFFCFormSwitch
130
- name = "ExpiringLicenses"
131
- label = "Alert on licenses expiring in 30 days"
132
- />
107
+ < Condition when = "SetAlerts" is = { true } >
108
+ < CCol >
109
+ < RFFCFormSwitch
110
+ value = { true }
111
+ name = "MFAAlertUsers"
112
+ label = "Alert on users without any form of MFA"
113
+ />
114
+ < RFFCFormSwitch name = "MFAAdmins" label = "Alert on admins without any form of MFA" />
115
+ < RFFCFormSwitch
116
+ name = "NoCAConfig"
117
+ label = "Alert on tenants without a Conditional Access policy, while having Conditional Access licensing available."
118
+ />
119
+ < RFFCFormSwitch name = "NewRole" label = "Alert on new users added to any admin role" />
120
+ < RFFCFormSwitch name = "AdminPassword" label = "Alert on changed admin Passwords" />
121
+ < RFFCFormSwitch
122
+ name = "DefenderStatus"
123
+ label = "Alert if Defender is not running (Tenant must be on-boarded in Lighthouse)"
124
+ />
125
+ < RFFCFormSwitch
126
+ name = "DefenderMalware"
127
+ label = "Alert on Defender Malware found (Tenant must be on-boarded in Lighthouse)"
128
+ />
129
+ < RFFCFormSwitch name = "QuotaUsed" label = "Alert on 90% mailbox quota used" />
130
+ </ CCol >
131
+ < CCol >
132
+ < RFFCFormSwitch name = "SharePointQuota" label = "Alert on 90% SharePoint quota used" />
133
+ < RFFCFormSwitch name = "UnusedLicenses" label = "Alert on unused licenses" />
134
+ < RFFCFormSwitch name = "OverusedLicenses" label = "Alert on overused licenses" />
135
+ < RFFCFormSwitch
136
+ name = "ExpiringLicenses"
137
+ label = "Alert on licenses expiring in 30 days"
138
+ />
133
139
134
- < RFFCFormSwitch
135
- name = "AppSecretExpiry"
136
- label = "Alert on expiring application secrets"
137
- />
138
- < RFFCFormSwitch name = "ApnCertExpiry" label = "Alert on expiring APN certificates" />
139
- < RFFCFormSwitch name = "VppTokenExpiry" label = "Alert on expiring VPP tokens" />
140
- < RFFCFormSwitch name = "DepTokenExpiry" label = "Alert on expiring DEP tokens" />
141
- < RFFCFormSwitch
142
- name = "SecDefaultsUpsell"
143
- label = "Alert on Security Defaults automatic enablement"
144
- />
145
- </ CCol >
140
+ < RFFCFormSwitch
141
+ name = "AppSecretExpiry"
142
+ label = "Alert on expiring application secrets"
143
+ />
144
+ < RFFCFormSwitch name = "ApnCertExpiry" label = "Alert on expiring APN certificates" />
145
+ < RFFCFormSwitch name = "VppTokenExpiry" label = "Alert on expiring VPP tokens" />
146
+ < RFFCFormSwitch name = "DepTokenExpiry" label = "Alert on expiring DEP tokens" />
147
+ < RFFCFormSwitch
148
+ name = "SecDefaultsUpsell"
149
+ label = "Alert on Security Defaults automatic enablement"
150
+ />
151
+ </ CCol >
152
+ </ Condition >
146
153
</ CRow >
147
154
</ CForm >
155
+
148
156
< hr className = "my-4" />
149
157
</ CippWizard . Page >
150
158
< CippWizard . Page
0 commit comments