@@ -21,6 +21,7 @@ const Page = () => {
21
21
data : { value : "customerId" } ,
22
22
confirmText : "Are you sure you want to exclude these tenants?" ,
23
23
multiPost : false ,
24
+ condition : ( row ) => row . displayName !== '*Partner Tenant' ,
24
25
} ,
25
26
{
26
27
label : "Include Tenants" ,
@@ -30,13 +31,14 @@ const Page = () => {
30
31
data : { value : "customerId" } ,
31
32
confirmText : "Are you sure you want to include these tenants?" ,
32
33
multiPost : false ,
34
+ condition : ( row ) => row . displayName !== '*Partner Tenant' ,
33
35
} ,
34
36
{
35
37
label : "Refresh CPV Permissions" ,
36
38
type : "POST" ,
37
39
url : `/api/ExecCPVPermissions` ,
38
40
icon : < PlayArrow /> ,
39
- data : { TenantFilter : "customerId" } ,
41
+ data : { tenantFilter : "customerId" } ,
40
42
confirmText : "Are you sure you want to refresh the CPV permissions for these tenants?" ,
41
43
multiPost : false ,
42
44
} ,
@@ -45,10 +47,11 @@ const Page = () => {
45
47
type : "POST" ,
46
48
url : `/api/ExecCPVPermissions?&ResetSP=true` ,
47
49
icon : < RestartAlt /> ,
48
- data : { TenantFilter : "customerId" } ,
50
+ data : { tenantFilter : "customerId" } ,
49
51
confirmText :
50
52
"Are you sure you want to reset the CPV permissions for these tenants? (This will delete the Service Principal and re-add it.)" ,
51
53
multiPost : false ,
54
+ condition : ( row ) => row . displayName !== '*Partner Tenant' ,
52
55
} ,
53
56
{
54
57
label : "Remove Tenant" ,
@@ -58,6 +61,7 @@ const Page = () => {
58
61
data : { TenantID : "customerId" } ,
59
62
confirmText : "Are you sure you want to remove this tenant?" ,
60
63
multiPost : false ,
64
+ condition : ( row ) => row . displayName !== '*Partner Tenant' ,
61
65
} ,
62
66
] ;
63
67
0 commit comments