Skip to content

Commit 681c8ff

Browse files
authored
Merge pull request #2789 from JohnDuprey/dev
Bugfixes and improvements
2 parents 968c5d7 + 5739fc4 commit 681c8ff

File tree

3 files changed

+28
-16
lines changed

3 files changed

+28
-16
lines changed

src/views/tenant/administration/GDAPRoleWizard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const GDAPRoleWizard = () => {
168168
return <li key={idx}>{message}</li>
169169
})}
170170
</CCallout>
171-
<Link to="/tenant/administration/gdap-invite">
171+
<Link to="/tenant/administration/gdap-invite-wizard">
172172
<CButton>Create GDAP Invite</CButton>
173173
</Link>
174174
</>

src/views/tenant/administration/TenantOnboardingWizard.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ const TenantOnboardingWizard = () => {
136136
</center>
137137
<hr className="my-4" />
138138
<div className="mb-2">
139-
<TitleButton href="/tenant/administration/gdap-invite" title="Create GDAP Invite" />
139+
<TitleButton
140+
href="/tenant/administration/gdap-invite-wizard"
141+
title="Create GDAP Invite"
142+
/>
140143
</div>
141144
<Field name="selectedRelationships" validate={requiredArray}>
142145
{(props) => (

src/views/tenant/standards/ListAppliedStandards.jsx

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const DeleteAction = () => {
7676
</>
7777
)
7878
}
79+
7980
const ApplyNewStandard = () => {
8081
const [templateStandard, setTemplateStandard] = useState()
8182
const [loadedTemplate, setLoadedTemplate] = useState(false)
@@ -268,6 +269,7 @@ const ApplyNewStandard = () => {
268269
})
269270

270271
const tenantDomain = useSelector((state) => state.app.currentTenant.defaultDomainName)
272+
const tenantDisplayName = useSelector((state) => state.app.currentTenant.displayName)
271273
//console.log('tenantDomain', tenantDomain)
272274
const [genericPostRequest, postResults] = useLazyGenericPostRequestQuery()
273275

@@ -294,20 +296,27 @@ const ApplyNewStandard = () => {
294296
})
295297

296298
const handleSubmit = async (values) => {
297-
Object.keys(values.standards).filter(function (x) {
298-
if (values.standards[x] === false) {
299-
delete values.standards[x]
300-
}
301-
return null
302-
})
303-
304-
//filter on only objects that are 'true'
305-
genericPostRequest({
306-
path: '/api/AddStandardsDeploy',
307-
values: { ...values.standards, tenant: tenantDomain },
308-
}).then(() => {
309-
refetchStandards()
310-
refetchConsolidated()
299+
ModalService.confirm({
300+
title: 'Save Standards',
301+
body: (
302+
<div>
303+
<p>
304+
Are you sure you want to save these standards to {tenantDisplayName}? This will apply
305+
all Remediate options on the next run.
306+
</p>
307+
</div>
308+
),
309+
confirmLabel: 'Save',
310+
cancelLabel: 'Cancel',
311+
onConfirm: () => {
312+
genericPostRequest({
313+
path: '/api/AddStandardsDeploy',
314+
values: { ...values.standards, tenant: tenantDomain },
315+
}).then(() => {
316+
refetchStandards()
317+
refetchConsolidated()
318+
})
319+
},
311320
})
312321
}
313322
const [intuneGetRequest, intuneTemplates] = useLazyGenericGetRequestQuery()

0 commit comments

Comments
 (0)