Skip to content

Commit 9c888be

Browse files
Merge pull request KelvinTegelaar#1665 from BNWEIN/dev
Added Functionality to CIPP Notifications so you can filter by severity
2 parents 8de2017 + 97e5be0 commit 9c888be

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

src/data/Extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"type": "HaloPSA",
5757
"cat": "Ticketing",
5858
"forceSyncButton": false,
59-
"helpText": "This integration allows you to use to send alerts to your ticketing system.",
59+
"helpText": "This integration allows you to send alerts to your ticketing system.",
6060
"SettingOptions": [
6161
{
6262
"type": "input",

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
@@ -1078,6 +1078,10 @@ const NotificationsSettings = () => {
10781078
label: m,
10791079
value: m,
10801080
})),
1081+
Severity: notificationListResult.data?.Severity?.map((s) => ({
1082+
label: s,
1083+
value: s,
1084+
})),
10811085
}}
10821086
onSubmit={onSubmit}
10831087
render={({ handleSubmit, submitting, values }) => {
@@ -1130,6 +1134,18 @@ const NotificationsSettings = () => {
11301134
]}
11311135
/>
11321136
</CCol>
1137+
<CCol>
1138+
<RFFSelectSearch
1139+
multi={true}
1140+
label="Choose which severity of alert you want to be notified for."
1141+
name="Severity"
1142+
values={[
1143+
{ value: 'Alert', name: 'Alert' },
1144+
{ value: 'Error', name: 'Error' },
1145+
{ value: 'Info', name: 'Info' },
1146+
]}
1147+
/>
1148+
</CCol>
11331149
<CCol>
11341150
<RFFCFormSwitch
11351151
name="onePerTenant"

src/views/tenant/administration/ListLicences.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const columns = [
4242
name: 'Estimated Term',
4343
selector: (row) => row['EstTerm'],
4444
sortable: true,
45+
cell: (row) => CellTip(row['EstTerm']),
4546
exportSelector: 'EstTerm',
4647
},
4748
{

0 commit comments

Comments
 (0)