Skip to content

Commit 5eccc8f

Browse files
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP into dev
2 parents b579070 + 5c0601c commit 5eccc8f

File tree

4 files changed

+27
-8
lines changed

4 files changed

+27
-8
lines changed

src/components/tables/CippTable.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,13 @@ export default function CippTable({
644644
if (typeof value === 'object' && !Array.isArray(value)) {
645645
Object.assign(output, flatten(value, newKey))
646646
} else {
647-
output[newKey] = value
647+
if (Array.isArray(value)) {
648+
value.map((item, idx) => {
649+
Object.assign(output, flatten(item, `${newKey}[${idx}]`))
650+
})
651+
} else {
652+
output[newKey] = value
653+
}
648654
}
649655
return output
650656
}, {})

src/views/identity/administration/DeployJITAdmin.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const DeployJITAdmin = () => {
7575
$select: 'id,displayName,userPrincipalName,accountEnabled',
7676
$count: true,
7777
$top: 999,
78+
$orderby: 'displayName',
7879
},
7980
})
8081

src/views/tenant/conditional/DeployVacation.jsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,17 @@ const ListClassicAlerts = () => {
5050
data: users = [],
5151
isFetching: usersIsFetching,
5252
error: usersError,
53-
} = useListUsersQuery({ tenantDomain })
53+
} = useGenericGetRequestQuery({
54+
path: '/api/ListGraphRequest',
55+
params: {
56+
TenantFilter: tenantDomain,
57+
Endpoint: 'users',
58+
$select: 'id,displayName,userPrincipalName,accountEnabled',
59+
$count: true,
60+
$top: 999,
61+
$orderby: 'displayName',
62+
},
63+
})
5464

5565
const {
5666
data: caPolicies = [],
@@ -90,12 +100,13 @@ const ListClassicAlerts = () => {
90100
<CCol>
91101
<RFFSelectSearch
92102
label={'Users in ' + tenantDomain}
93-
values={users?.map((user) => ({
103+
values={users?.Results?.map((user) => ({
94104
value: user.id,
95105
name: `${user.displayName} <${user.userPrincipalName}>`,
96106
}))}
97107
placeholder={!usersIsFetching ? 'Select user' : 'Loading...'}
98108
name="UserId"
109+
isLoading={usersIsFetching}
99110
/>
100111
</CCol>
101112
</CRow>
@@ -109,6 +120,7 @@ const ListClassicAlerts = () => {
109120
}))}
110121
placeholder={!caIsFetching ? 'Select policy' : 'Loading...'}
111122
name="PolicyId"
123+
isLoading={caIsFetching}
112124
/>
113125
</CCol>
114126
</CRow>

src/views/tenant/standards/ListAppliedStandards.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ const ApplyNewStandard = () => {
548548
/>
549549
</CCol>
550550
<CCol md={3}>
551-
<h5>Optional Input</h5>
551+
<h5>Settings</h5>
552552
</CCol>
553553
</CRow>
554554
</CAccordionBody>
@@ -647,7 +647,7 @@ const ApplyNewStandard = () => {
647647
/>
648648
</CCol>
649649
<CCol md={3}>
650-
<h5>Optional Input</h5>
650+
<h5>Settings</h5>
651651
{obj.addedComponent &&
652652
obj.addedComponent.map((component) => (
653653
<>
@@ -768,7 +768,7 @@ const ApplyNewStandard = () => {
768768
<RFFCFormSwitch name={`${template.switchName}.remediate`} />
769769
</CCol>
770770
<CCol md={3}>
771-
<h5>Optional Input</h5>
771+
<h5>Settings</h5>
772772
{template.templates.isSuccess && (
773773
<RFFSelectSearch
774774
name={`${template.switchName}.TemplateList`}
@@ -845,7 +845,7 @@ const ApplyNewStandard = () => {
845845
<RFFCFormSwitch name={`standards.APConfig.remediate`} />
846846
</CCol>
847847
<CCol md={3}>
848-
<h5>Optional Input</h5>
848+
<h5>Settings</h5>
849849
<CRow>
850850
<CCol md={12}>
851851
<RFFCFormInput
@@ -955,7 +955,7 @@ const ApplyNewStandard = () => {
955955
<RFFCFormSwitch name={`standards.APESP.remediate`} />
956956
</CCol>
957957
<CCol md={3}>
958-
<h5>Optional Input</h5>
958+
<h5>Settings</h5>
959959
<CRow>
960960
<CCol>
961961
<RFFCFormInput

0 commit comments

Comments
 (0)