Skip to content

Commit a5f8ad6

Browse files
committed
Added Functionality to CIPP Notifications so you can filter by severity
Added Functionality to CIPP Notifications so you can filter by severity
1 parent 1e4eef2 commit a5f8ad6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/store/api/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const appApi = baseApi.injectEndpoints({
5656
onePerTenant,
5757
sendtoIntegration,
5858
logsToInclude,
59+
Severity,
5960
}) => ({
6061
path: '/api/ExecNotificationConfig',
6162
data: {
@@ -70,6 +71,7 @@ export const appApi = baseApi.injectEndpoints({
7071
addChocoApp: addChocoApp,
7172
onePerTenant: onePerTenant,
7273
logsToInclude: logsToInclude,
74+
Severity: Severity,
7375
sendtoIntegration: sendtoIntegration,
7476
},
7577
method: 'post',

src/views/cipp/CIPPSettings.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,10 @@ const NotificationsSettings = () => {
981981
label: m,
982982
value: m,
983983
})),
984+
Severity: notificationListResult.data?.Severity?.map((s) => ({
985+
label: s,
986+
value: s,
987+
})),
984988
}}
985989
onSubmit={onSubmit}
986990
render={({ handleSubmit, submitting, values }) => {
@@ -1033,6 +1037,18 @@ const NotificationsSettings = () => {
10331037
]}
10341038
/>
10351039
</CCol>
1040+
<CCol>
1041+
<RFFSelectSearch
1042+
multi={true}
1043+
label="Choose which severity of alert you want to be notified for."
1044+
name="Severity"
1045+
values={[
1046+
{ value: 'Alert', name: 'Alert' },
1047+
{ value: 'Error', name: 'Error' },
1048+
{ value: 'Info', name: 'Info' },
1049+
]}
1050+
/>
1051+
</CCol>
10361052
<CCol>
10371053
<RFFCFormSwitch
10381054
name="onePerTenant"

0 commit comments

Comments
 (0)