@@ -12,6 +12,7 @@ import {
12
12
SvgIcon ,
13
13
IconButton ,
14
14
Skeleton ,
15
+ Divider ,
15
16
} from "@mui/material" ;
16
17
import { ArrowLeftIcon } from "@mui/x-date-pickers" ;
17
18
import { useRouter } from "next/router" ;
@@ -218,6 +219,7 @@ const AlertWizard = () => {
218
219
const postObject = {
219
220
RowKey : router . query . clone ? undefined : router . query . id ? router . query . id : undefined ,
220
221
tenantFilter : values . tenantFilter ?. value ,
222
+ excludedTenants : values . excludedTenants ,
221
223
Name : `${ values . tenantFilter . value } : ${ values . command . label } ` ,
222
224
Command : { value : `Get-CIPPAlert${ values . command . value . name } ` } ,
223
225
Parameters : getInputParams ( ) ,
@@ -297,14 +299,32 @@ const AlertWizard = () => {
297
299
< Grid container spacing = { 4 } justifyContent = "space-around" >
298
300
< Grid item xs = { 12 } md = { 12 } >
299
301
< CippButtonCard title = "Tenant Selector" sx = { { mb : 3 } } >
300
- < Typography >
301
- Select the tenants you want to include in this Alert.
302
- </ Typography >
303
- < CippFormTenantSelector
304
- multiple = { true }
305
- formControl = { formControl }
306
- allTenants = { true }
307
- />
302
+ < Grid container spacing = { 3 } >
303
+ < Grid item xs = { 12 } >
304
+ < CippFormTenantSelector
305
+ multiple = { true }
306
+ formControl = { formControl }
307
+ allTenants = { true }
308
+ label = "Included Tenants for alert"
309
+ />
310
+ </ Grid >
311
+ < CippFormCondition
312
+ field = "tenantFilter"
313
+ formControl = { formControl }
314
+ compareType = "valueContains"
315
+ compareValue = "AllTenants"
316
+ >
317
+ < Grid item xs = { 12 } >
318
+ < CippFormTenantSelector
319
+ multiple = { true }
320
+ label = "Excluded Tenants for alert"
321
+ formControl = { formControl }
322
+ allTenants = { false }
323
+ name = "excludedTenants"
324
+ />
325
+ </ Grid >
326
+ </ CippFormCondition >
327
+ </ Grid >
308
328
</ CippButtonCard >
309
329
</ Grid >
310
330
@@ -469,14 +489,32 @@ const AlertWizard = () => {
469
489
< Grid container spacing = { 3 } >
470
490
< Grid item xs = { 12 } md = { 12 } >
471
491
< CippButtonCard title = "Tenant Selector" >
472
- < Typography >
473
- Select the tenants you want to include in this Alert.
474
- </ Typography >
475
- < CippFormTenantSelector
476
- allTenants = { true }
477
- multiple = { false }
478
- formControl = { formControl }
479
- />
492
+ < Grid container spacing = { 3 } >
493
+ < Grid item xs = { 12 } >
494
+ < CippFormTenantSelector
495
+ allTenants = { true }
496
+ multiple = { false }
497
+ formControl = { formControl }
498
+ label = "Included Tenants for alert"
499
+ />
500
+ </ Grid >
501
+ < CippFormCondition
502
+ field = "tenantFilter"
503
+ formControl = { formControl }
504
+ compareType = "is"
505
+ compareValue = "AllTenants"
506
+ >
507
+ < Grid item xs = { 12 } >
508
+ < CippFormTenantSelector
509
+ multiple = { true }
510
+ label = "Excluded Tenants for alert"
511
+ formControl = { formControl }
512
+ allTenants = { false }
513
+ name = "excludedTenants"
514
+ />
515
+ </ Grid >
516
+ </ CippFormCondition >
517
+ </ Grid >
480
518
</ CippButtonCard >
481
519
</ Grid >
482
520
0 commit comments