Skip to content

Commit

Permalink
Merge branch 'KelvinTegelaar:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
MattDunn12 authored Aug 9, 2024
2 parents 4b2a7b1 + c7086e0 commit b59906c
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cipp",
"version": "6.2.0",
"version": "6.2.1",
"description": "The CyberDrain Improved Partner Portal is a portal to help manage administration for Microsoft Partners.",
"homepage": "https://cipp.app/",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion public/version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.2.0
6.2.1
16 changes: 12 additions & 4 deletions src/data/standards.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"value": "default"
},
{
"label": "Parial-screen background",
"label": "Partial-screen background",
"value": "verticalSplit"
}
]
Expand Down Expand Up @@ -1985,14 +1985,22 @@
"name": "standards.DeletedUserRentention",
"cat": "SharePoint Standards",
"tag": ["lowimpact"],
"helpText": "Sets the retention period for deleted users OneDrive to the specified number of years. The default is 1 year.",
"docsDescription": "When a OneDrive user gets deleted, the personal SharePoint site is saved for selected time in years and data can be retrieved from it.",
"helpText": "Sets the retention period for deleted users OneDrive to the specified period of time. The default is 30 days.",
"docsDescription": "When a OneDrive user gets deleted, the personal SharePoint site is saved for selected amount of time that data can be retrieved from it.",
"addedComponent": [
{
"type": "Select",
"name": "standards.DeletedUserRentention.Days",
"label": "Retention in years (Default 1)",
"label": "Retention time (Default 30 days)",
"values": [
{
"label": "30 days",
"value": "30"
},
{
"label": "90 days",
"value": "90"
},
{
"label": "1 year",
"value": "365"
Expand Down
36 changes: 36 additions & 0 deletions src/views/cipp/app-settings/SettingsSuperAdmin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,42 @@ export function SettingsSuperAdmin() {
</p>
</CCol>
</CRow>
<CRow>
<CCol sm={12} md={12} className="mb-3">
<p className="fw-lighter">Tenant Mode</p>
<Form
onSubmit={onSubmit}
initialValues={partnerConfig.data}
render={({ handleSubmit }) => (
<>
{partnerConfig.isFetching && <CSpinner size="sm" className="me-2" />}
<CForm id="submitForm" onSubmit={handleSubmit}>
<RFFCFormRadio
name="TenantMode"
label="Multi Tenant - GDAP Mode"
value="default"
/>
<RFFCFormRadio
name="TenantMode"
label="Multi Tenant - Add Partner Tenant"
value="PartnerTenantAvailable"
/>
<RFFCFormRadio
name="TenantMode"
label="Single Tenant - Own Tenant Mode"
value="owntenant"
/>
</CForm>
</>
)}
/>
{webhookCreateResult.isSuccess && (
<CippCallout color="info" dismissible>
{webhookCreateResult?.data?.results}
</CippCallout>
)}
</CCol>
</CRow>
</>
</>
</CippButtonCard>
Expand Down
2 changes: 1 addition & 1 deletion src/views/tenant/administration/GDAPRoleWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const GDAPRoleWizard = () => {
return <li key={idx}>{message}</li>
})}
</CCallout>
<Link to="/tenant/administration/gdap-invite">
<Link to="/tenant/administration/gdap-invite-wizard">
<CButton>Create GDAP Invite</CButton>
</Link>
</>
Expand Down
5 changes: 4 additions & 1 deletion src/views/tenant/administration/TenantOnboardingWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ const TenantOnboardingWizard = () => {
</center>
<hr className="my-4" />
<div className="mb-2">
<TitleButton href="/tenant/administration/gdap-invite" title="Create GDAP Invite" />
<TitleButton
href="/tenant/administration/gdap-invite-wizard"
title="Create GDAP Invite"
/>
</div>
<Field name="selectedRelationships" validate={requiredArray}>
{(props) => (
Expand Down
37 changes: 23 additions & 14 deletions src/views/tenant/standards/ListAppliedStandards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const DeleteAction = () => {
</>
)
}

const ApplyNewStandard = () => {
const [templateStandard, setTemplateStandard] = useState()
const [loadedTemplate, setLoadedTemplate] = useState(false)
Expand Down Expand Up @@ -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()

Expand All @@ -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: (
<div>
<p>
Are you sure you want to save these standards to {tenantDisplayName}? This will apply
all Remediate options on the next run.
</p>
</div>
),
confirmLabel: 'Save',
cancelLabel: 'Cancel',
onConfirm: () => {
genericPostRequest({
path: '/api/AddStandardsDeploy',
values: { ...values.standards, tenant: tenantDomain },
}).then(() => {
refetchStandards()
refetchConsolidated()
})
},
})
}
const [intuneGetRequest, intuneTemplates] = useLazyGenericGetRequestQuery()
Expand Down
2 changes: 1 addition & 1 deletion version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.2.0
6.2.1

0 comments on commit b59906c

Please sign in to comment.