Skip to content

Commit e444336

Browse files
authored
Merge pull request #2728 from JohnDuprey/dev
MFA report update & UI tweaks
2 parents a2e8e69 + 34a7533 commit e444336

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

src/views/cipp/Setup.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ const Setup = () => {
286286
type="text"
287287
name="TenantID"
288288
label="Tenant ID"
289-
placeholder="Enter the Tenant ID. e.g. mymsp.onmicrosoft.com. Leave blank to retain a previous key if this exists."
289+
placeholder="Enter the Tenant ID. e.g. 1111-1111-1111-1111-11111. Leave blank to retain a previous key if this exists."
290290
/>
291291
</CCol>
292292
</CRow>

src/views/cipp/app-settings/SettingsTenants.jsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useLazyGenericGetRequestQuery } from 'src/store/api/app.js'
77
import React, { useEffect, useRef } from 'react'
88
import { ModalService, TenantSelectorMultiple } from 'src/components/utilities/index.js'
99
import { setCurrentTenant } from 'src/store/features/app.js'
10-
import { CAlert, CButton, CCallout, CSpinner, CTooltip } from '@coreui/react'
10+
import { CButton, CSpinner, CTooltip } from '@coreui/react'
1111
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
1212
import {
1313
faCheckCircle,
@@ -261,6 +261,16 @@ export function SettingsTenants() {
261261
modalMessage:
262262
'Are you sure you want to reset the CPV permissions for these tenants? (This will delete the Service Principal and re-add it.)',
263263
},
264+
{
265+
label: 'Remove Tenant',
266+
modal: true,
267+
modalType: 'POST',
268+
modalUrl: `/api/ExecRemoveTenant`,
269+
modalBody: {
270+
TenantID: '!customerId',
271+
},
272+
modalMessage: 'Are you sure you want to remove this tenant?',
273+
},
264274
],
265275
},
266276
isModal: true,

src/views/identity/reports/MFAReport.jsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useSelector } from 'react-redux'
33
import { cellBooleanFormatter, CellTip } from 'src/components/tables'
44
import { CippPageList } from 'src/components/layout'
55
import { Row } from 'react-bootstrap'
6+
import { cellGenericFormatter } from 'src/components/tables/CellGenericFormat'
67

78
const columns = [
89
{
@@ -57,9 +58,23 @@ const columns = [
5758
selector: (row) => row['CoveredByCA'],
5859
name: 'Enforced via Conditional Access',
5960
sortable: true,
60-
cell: (row) => CellTip(row['CoveredByCA']),
61+
cell: cellGenericFormatter(),
6162
exportSelector: 'CoveredByCA',
6263
},
64+
{
65+
selector: (row) => row['MFAMethods'],
66+
name: 'MFA Methods',
67+
sortable: true,
68+
cell: cellGenericFormatter(),
69+
exportSelector: 'MFAMethods',
70+
},
71+
{
72+
selector: (row) => row['CAPolicies'],
73+
name: 'CA Policies',
74+
sortable: true,
75+
cell: cellGenericFormatter(),
76+
exportSelector: 'CAPolicies',
77+
},
6378
]
6479

6580
const Altcolumns = [

0 commit comments

Comments
 (0)