Skip to content

Commit

Permalink
Added Functionality to CIPP Notifications so you can filter by severity
Browse files Browse the repository at this point in the history
Added Functionality to CIPP Notifications so you can filter by severity
  • Loading branch information
BNWEIN committed Aug 2, 2023
1 parent 1e4eef2 commit a5f8ad6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/api/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const appApi = baseApi.injectEndpoints({
onePerTenant,
sendtoIntegration,
logsToInclude,
Severity,
}) => ({
path: '/api/ExecNotificationConfig',
data: {
Expand All @@ -70,6 +71,7 @@ export const appApi = baseApi.injectEndpoints({
addChocoApp: addChocoApp,
onePerTenant: onePerTenant,
logsToInclude: logsToInclude,
Severity: Severity,
sendtoIntegration: sendtoIntegration,
},
method: 'post',
Expand Down
16 changes: 16 additions & 0 deletions src/views/cipp/CIPPSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,10 @@ const NotificationsSettings = () => {
label: m,
value: m,
})),
Severity: notificationListResult.data?.Severity?.map((s) => ({
label: s,
value: s,
})),
}}
onSubmit={onSubmit}
render={({ handleSubmit, submitting, values }) => {
Expand Down Expand Up @@ -1033,6 +1037,18 @@ const NotificationsSettings = () => {
]}
/>
</CCol>
<CCol>
<RFFSelectSearch
multi={true}
label="Choose which severity of alert you want to be notified for."
name="Severity"
values={[
{ value: 'Alert', name: 'Alert' },
{ value: 'Error', name: 'Error' },
{ value: 'Info', name: 'Info' },
]}
/>
</CCol>
<CCol>
<RFFCFormSwitch
name="onePerTenant"
Expand Down

0 comments on commit a5f8ad6

Please sign in to comment.