Skip to content

Commit 20e382d

Browse files
authored
Merge pull request #659 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents adaa7e4 + d924379 commit 20e382d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/components/CippStandards/CippStandardsSideBar.jsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ const CippStandardsSideBar = ({
420420

421421
{(watchForm.tenantFilter?.some(
422422
(tenant) => tenant.value === "AllTenants" || tenant.type === "Group"
423-
) || (watchForm.excludedTenants && watchForm.excludedTenants.length > 0)) && (
423+
) ||
424+
(watchForm.excludedTenants && watchForm.excludedTenants.length > 0)) && (
424425
<>
425426
<Divider />
426427
<CippFormTenantSelector
@@ -452,6 +453,22 @@ const CippStandardsSideBar = ({
452453
placeholder="Enter email address for drift alerts. Leave blank to use the default email address."
453454
fullWidth
454455
/>
456+
<CippFormComponent
457+
type="switch"
458+
name="driftAlertDisableEmail"
459+
label="Disable All Notifications"
460+
formControl={formControl}
461+
fullWidth
462+
/>
463+
<Typography
464+
sx={{
465+
color: "text.secondary",
466+
}}
467+
variant="caption"
468+
>
469+
When enabled, all drift alert notifications (email, webhook, and PSA) will be
470+
disabled.
471+
</Typography>
455472
</>
456473
)}
457474
{/* Hide schedule options in drift mode */}
@@ -561,6 +578,7 @@ const CippStandardsSideBar = ({
561578
type: "drift",
562579
driftAlertWebhook: "driftAlertWebhook",
563580
driftAlertEmail: "driftAlertEmail",
581+
driftAlertDisableEmail: "driftAlertDisableEmail",
564582
}
565583
: {}),
566584
},

0 commit comments

Comments
 (0)