File tree Expand file tree Collapse file tree 2 files changed +28
-11
lines changed Expand file tree Collapse file tree 2 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 188
188
},
189
189
{
190
190
"cat" : " AAD" ,
191
- "name" : " standards.EnableAppConsentRequests" ,
191
+ "name" : " standards.EnableAppConsentRequests.Enabled " ,
192
192
"helpText" : " Enables App consent admin requests for the tenant via the GA role. Does not overwrite existing reviewer settings" ,
193
- "addedComponent" : null ,
193
+ "addedComponent" : {
194
+ "type" : " AdminRolesMultiSelect" ,
195
+ "label" : " App Consent Reviewer Roles" ,
196
+ "name" : " standards.EnableAppConsentRequests.ReviewerRoles"
197
+ },
194
198
"label" : " Enable App consent admin requests"
195
199
},
196
200
{
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import Skeleton from 'react-loading-skeleton'
22
22
import { CippTable } from 'src/components/tables'
23
23
import allStandardsList from 'src/data/standards'
24
24
import CippCodeOffCanvas from 'src/components/utilities/CippCodeOffcanvas'
25
+ import GDAPRoles from 'src/data/GDAPRoles'
25
26
26
27
const RefreshAction = ( ) => {
27
28
const [ execStandards , execStandardsResults ] = useLazyGenericGetRequestQuery ( )
@@ -306,21 +307,33 @@ const ListAppliedStandards = () => {
306
307
/>
307
308
{ item . addedComponent && (
308
309
< Condition when = { item . name } is = { true } >
309
- { item . addedComponent . type === 'Select' ? (
310
+ { ( item . addedComponent . type === 'Select' && (
310
311
< RFFCFormSelect
311
312
name = { item . addedComponent . name }
312
313
className = "mb-3"
313
314
label = { item . addedComponent . label }
314
315
values = { item . addedComponent . values }
315
316
/>
316
- ) : (
317
- < RFFCFormInput
318
- type = "text"
319
- className = "mb-3"
320
- name = { item . addedComponent . name }
321
- label = { item . addedComponent . label }
322
- />
323
- ) }
317
+ ) ) ||
318
+ ( item . addedComponent . type === 'AdminRolesMultiSelect' && (
319
+ < RFFSelectSearch
320
+ multi = { true }
321
+ name = { item . addedComponent . name }
322
+ className = "mb-3"
323
+ label = { item . addedComponent . label }
324
+ values = { GDAPRoles . map ( ( role ) => ( {
325
+ value : role . ObjectId ,
326
+ name : role . Name ,
327
+ } ) ) }
328
+ />
329
+ ) ) || (
330
+ < RFFCFormInput
331
+ type = "text"
332
+ className = "mb-3"
333
+ name = { item . addedComponent . name }
334
+ label = { item . addedComponent . label }
335
+ />
336
+ ) }
324
337
</ Condition >
325
338
) }
326
339
</ CCol >
You can’t perform that action at this time.
0 commit comments