diff --git a/src/views/tenant/administration/GDAPRoleWizard.jsx b/src/views/tenant/administration/GDAPRoleWizard.jsx
index acaca41de84a..8607617cfb0a 100644
--- a/src/views/tenant/administration/GDAPRoleWizard.jsx
+++ b/src/views/tenant/administration/GDAPRoleWizard.jsx
@@ -168,7 +168,7 @@ const GDAPRoleWizard = () => {
return
{message}
})}
-
+
Create GDAP Invite
>
diff --git a/src/views/tenant/administration/TenantOnboardingWizard.jsx b/src/views/tenant/administration/TenantOnboardingWizard.jsx
index ebbab2a8e178..981a047702d0 100644
--- a/src/views/tenant/administration/TenantOnboardingWizard.jsx
+++ b/src/views/tenant/administration/TenantOnboardingWizard.jsx
@@ -136,7 +136,10 @@ const TenantOnboardingWizard = () => {
-
+
{(props) => (
diff --git a/src/views/tenant/standards/ListAppliedStandards.jsx b/src/views/tenant/standards/ListAppliedStandards.jsx
index 10eab27c96fd..226f2cf028c6 100644
--- a/src/views/tenant/standards/ListAppliedStandards.jsx
+++ b/src/views/tenant/standards/ListAppliedStandards.jsx
@@ -76,6 +76,7 @@ const DeleteAction = () => {
>
)
}
+
const ApplyNewStandard = () => {
const [templateStandard, setTemplateStandard] = useState()
const [loadedTemplate, setLoadedTemplate] = useState(false)
@@ -268,6 +269,7 @@ const ApplyNewStandard = () => {
})
const tenantDomain = useSelector((state) => state.app.currentTenant.defaultDomainName)
+ const tenantDisplayName = useSelector((state) => state.app.currentTenant.displayName)
//console.log('tenantDomain', tenantDomain)
const [genericPostRequest, postResults] = useLazyGenericPostRequestQuery()
@@ -294,20 +296,27 @@ const ApplyNewStandard = () => {
})
const handleSubmit = async (values) => {
- Object.keys(values.standards).filter(function (x) {
- if (values.standards[x] === false) {
- delete values.standards[x]
- }
- return null
- })
-
- //filter on only objects that are 'true'
- genericPostRequest({
- path: '/api/AddStandardsDeploy',
- values: { ...values.standards, tenant: tenantDomain },
- }).then(() => {
- refetchStandards()
- refetchConsolidated()
+ ModalService.confirm({
+ title: 'Save Standards',
+ body: (
+
+
+ Are you sure you want to save these standards to {tenantDisplayName}? This will apply
+ all Remediate options on the next run.
+
+
+ ),
+ confirmLabel: 'Save',
+ cancelLabel: 'Cancel',
+ onConfirm: () => {
+ genericPostRequest({
+ path: '/api/AddStandardsDeploy',
+ values: { ...values.standards, tenant: tenantDomain },
+ }).then(() => {
+ refetchStandards()
+ refetchConsolidated()
+ })
+ },
})
}
const [intuneGetRequest, intuneTemplates] = useLazyGenericGetRequestQuery()