Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Jun 22, 2024
2 parents b579070 + 5c0601c commit 5eccc8f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 8 deletions.
8 changes: 7 additions & 1 deletion src/components/tables/CippTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,13 @@ export default function CippTable({
if (typeof value === 'object' && !Array.isArray(value)) {
Object.assign(output, flatten(value, newKey))
} else {
output[newKey] = value
if (Array.isArray(value)) {
value.map((item, idx) => {
Object.assign(output, flatten(item, `${newKey}[${idx}]`))
})
} else {
output[newKey] = value
}
}
return output
}, {})
Expand Down
1 change: 1 addition & 0 deletions src/views/identity/administration/DeployJITAdmin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const DeployJITAdmin = () => {
$select: 'id,displayName,userPrincipalName,accountEnabled',
$count: true,
$top: 999,
$orderby: 'displayName',
},
})
Expand Down
16 changes: 14 additions & 2 deletions src/views/tenant/conditional/DeployVacation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,17 @@ const ListClassicAlerts = () => {
data: users = [],
isFetching: usersIsFetching,
error: usersError,
} = useListUsersQuery({ tenantDomain })
} = useGenericGetRequestQuery({
path: '/api/ListGraphRequest',
params: {
TenantFilter: tenantDomain,
Endpoint: 'users',
$select: 'id,displayName,userPrincipalName,accountEnabled',
$count: true,
$top: 999,
$orderby: 'displayName',
},
})
const {
data: caPolicies = [],
Expand Down Expand Up @@ -90,12 +100,13 @@ const ListClassicAlerts = () => {
<CCol>
<RFFSelectSearch
label={'Users in ' + tenantDomain}
values={users?.map((user) => ({
values={users?.Results?.map((user) => ({
value: user.id,
name: `${user.displayName} <${user.userPrincipalName}>`,
}))}
placeholder={!usersIsFetching ? 'Select user' : 'Loading...'}
name="UserId"
isLoading={usersIsFetching}
/>
</CCol>
</CRow>
Expand All @@ -109,6 +120,7 @@ const ListClassicAlerts = () => {
}))}
placeholder={!caIsFetching ? 'Select policy' : 'Loading...'}
name="PolicyId"
isLoading={caIsFetching}
/>
</CCol>
</CRow>
Expand Down
10 changes: 5 additions & 5 deletions src/views/tenant/standards/ListAppliedStandards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ const ApplyNewStandard = () => {
/>
</CCol>
<CCol md={3}>
<h5>Optional Input</h5>
<h5>Settings</h5>
</CCol>
</CRow>
</CAccordionBody>
Expand Down Expand Up @@ -647,7 +647,7 @@ const ApplyNewStandard = () => {
/>
</CCol>
<CCol md={3}>
<h5>Optional Input</h5>
<h5>Settings</h5>
{obj.addedComponent &&
obj.addedComponent.map((component) => (
<>
Expand Down Expand Up @@ -768,7 +768,7 @@ const ApplyNewStandard = () => {
<RFFCFormSwitch name={`${template.switchName}.remediate`} />
</CCol>
<CCol md={3}>
<h5>Optional Input</h5>
<h5>Settings</h5>
{template.templates.isSuccess && (
<RFFSelectSearch
name={`${template.switchName}.TemplateList`}
Expand Down Expand Up @@ -845,7 +845,7 @@ const ApplyNewStandard = () => {
<RFFCFormSwitch name={`standards.APConfig.remediate`} />
</CCol>
<CCol md={3}>
<h5>Optional Input</h5>
<h5>Settings</h5>
<CRow>
<CCol md={12}>
<RFFCFormInput
Expand Down Expand Up @@ -955,7 +955,7 @@ const ApplyNewStandard = () => {
<RFFCFormSwitch name={`standards.APESP.remediate`} />
</CCol>
<CCol md={3}>
<h5>Optional Input</h5>
<h5>Settings</h5>
<CRow>
<CCol>
<RFFCFormInput
Expand Down

0 comments on commit 5eccc8f

Please sign in to comment.