Skip to content

Commit

Permalink
Merge pull request #3348 from kris6673/input-types
Browse files Browse the repository at this point in the history
Add support for new input types in alerts configuration
  • Loading branch information
KelvinTegelaar authored Jan 19, 2025
2 parents 5d95e14 + fa208ad commit 9f99bd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/data/alerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@
{
"name": "InactiveLicensedUsers",
"label": "Alert on licensed users that have not logged in for 90 days",
"requiresInput": true,
"inputType": "switch",
"inputLabel": "Exclude disabled users?",
"inputName": "InactiveLicensedUsersExcludeDisabled",
"recommendedRunInterval": "1d"
},
{
"name": "QuotaUsed",
"label": "Alert on % mailbox quota used",
"requiresInput": true,
"inputType": "textField",
"inputLabel": "Enter quota percentage",
"inputName": "QuotaUsedQuota",
"recommendedRunInterval": "4h"
Expand All @@ -36,6 +41,7 @@
"name": "SharePointQuota",
"label": "Alert on % SharePoint quota used",
"requiresInput": true,
"inputType": "textField",
"inputLabel": "Enter quota percentage",
"inputName": "SharePointQuotaQuota",
"recommendedRunInterval": "4h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ const AlertWizard = () => {
<Grid item xs={12} md={12}>
{commandValue?.value?.requiresInput && (
<CippFormComponent
type="textField"
type={commandValue.value?.inputType}
name={commandValue.value?.inputName}
formControl={formControl}
label={commandValue.value?.inputLabel}
Expand Down

0 comments on commit 9f99bd3

Please sign in to comment.