}
capabilities={{ allTenants: true, helpContext: 'https://google.com' }}
title="GDAP Relationship List"
tenantSelector={false}
@@ -176,8 +191,13 @@ const GDAPRelationships = () => {
modalUrl: `/api/ExecDeleteGDAPRelationship?&GDAPID=!id`,
modalMessage: 'Are you sure you want to terminate these relationships?',
},
+ {
+ label: 'Auto Extend Relationship',
+ modal: true,
+ modalUrl: `/api/ExecAutoExtendGDAP?ID=!id`,
+ modalMessage: 'Are you sure you want to enable automatic extension?',
+ },
],
- actions: [
],
},
keyField: 'id',
columns,
diff --git a/src/views/tenant/standards/ListAppliedStandards.js b/src/views/tenant/standards/ListAppliedStandards.js
index 7f1382a5e149..d22f03d05862 100644
--- a/src/views/tenant/standards/ListAppliedStandards.js
+++ b/src/views/tenant/standards/ListAppliedStandards.js
@@ -21,6 +21,8 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import Skeleton from 'react-loading-skeleton'
import { CippTable } from 'src/components/tables'
import allStandardsList from 'src/data/standards'
+import { useState } from 'react'
+import CippCodeOffCanvas from 'src/components/utilities/CippCodeOffcanvas'
const RefreshAction = () => {
const [execStandards, execStandardsResults] = useLazyGenericGetRequestQuery()
@@ -80,6 +82,43 @@ const DeleteAction = () => {
)
}
const ListAppliedStandards = () => {
+ const [ExecuteGetRequest, getResults] = useLazyGenericGetRequestQuery()
+
+ const Offcanvas = (row, rowIndex, formatExtraData) => {
+ const [ocVisible, setOCVisible] = useState(false)
+ const handleDeleteIntuneTemplate = (apiurl, message) => {
+ ModalService.confirm({
+ title: 'Confirm',
+ body:
{message}
,
+ onConfirm: () => ExecuteGetRequest({ path: apiurl }),
+ confirmLabel: 'Continue',
+ cancelLabel: 'Cancel',
+ })
+ }
+ return (
+ <>
+
+ handleDeleteIntuneTemplate(
+ `api/RemoveStandard?ID=${row.displayName}`,
+ 'Do you want to delete this standard?',
+ )
+ }
+ >
+
+
+
setOCVisible(false)}
+ />
+ >
+ )
+ }
const tenantDomain = useSelector((state) => state.app.currentTenant.defaultDomainName)
const [genericPostRequest, postResults] = useLazyGenericPostRequestQuery()
@@ -124,6 +163,11 @@ const ListAppliedStandards = () => {
sortable: true,
exportSelector: 'StandardsExport',
},
+ {
+ name: 'Actions',
+ cell: Offcanvas,
+ maxWidth: '80px',
+ },
]
const [intuneGetRequest, intuneTemplates] = useLazyGenericGetRequestQuery()
const [transportGetRequest, transportTemplates] = useLazyGenericGetRequestQuery()
@@ -383,9 +427,6 @@ const ListAppliedStandards = () => {
>
))}
- {postResults.isSuccess && (
- {postResults.data.Results}
- )}
Templates
@@ -407,7 +448,7 @@ const ListAppliedStandards = () => {
name: template.Displayname,
}))}
placeholder="Select a template"
- label="Choose your intune templates to apply"
+ label="Choose your Intune templates to apply"
/>
)}
@@ -451,7 +492,7 @@ const ListAppliedStandards = () => {
name: template.displayName,
}))}
placeholder="Select a template"
- label="Choose your intune templates to apply"
+ label="Choose your Conditional Access templates to apply"
/>
)}
@@ -473,7 +514,7 @@ const ListAppliedStandards = () => {
name: template.name,
}))}
placeholder="Select a template"
- label="Choose your intune templates to apply"
+ label="Choose your Transport Rule templates to apply"
/>
)}
@@ -494,7 +535,7 @@ const ListAppliedStandards = () => {
name: template.Displayname,
}))}
placeholder="Select a template"
- label="Choose your group templates to apply"
+ label="Choose your Group templates to apply"
/>
)}
@@ -533,6 +574,10 @@ const ListAppliedStandards = () => {
{listStandardsAllTenants && (
+ {getResults.isLoading && }
+ {getResults.isSuccess && (
+ {getResults.data?.Results}
+ )}