Skip to content

Commit c7086e0

Browse files
authored
Merge pull request #2791 from KelvinTegelaar/dev
Dev to hotfix
2 parents 8db8c70 + 80257c2 commit c7086e0

File tree

8 files changed

+79
-23
lines changed

8 files changed

+79
-23
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cipp",
3-
"version": "6.2.0",
3+
"version": "6.2.1",
44
"description": "The CyberDrain Improved Partner Portal is a portal to help manage administration for Microsoft Partners.",
55
"homepage": "https://cipp.app/",
66
"bugs": {

public/version_latest.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.2.0
1+
6.2.1

src/data/standards.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"value": "default"
9494
},
9595
{
96-
"label": "Parial-screen background",
96+
"label": "Partial-screen background",
9797
"value": "verticalSplit"
9898
}
9999
]
@@ -1985,14 +1985,22 @@
19851985
"name": "standards.DeletedUserRentention",
19861986
"cat": "SharePoint Standards",
19871987
"tag": ["lowimpact"],
1988-
"helpText": "Sets the retention period for deleted users OneDrive to the specified number of years. The default is 1 year.",
1989-
"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.",
1988+
"helpText": "Sets the retention period for deleted users OneDrive to the specified period of time. The default is 30 days.",
1989+
"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.",
19901990
"addedComponent": [
19911991
{
19921992
"type": "Select",
19931993
"name": "standards.DeletedUserRentention.Days",
1994-
"label": "Retention in years (Default 1)",
1994+
"label": "Retention time (Default 30 days)",
19951995
"values": [
1996+
{
1997+
"label": "30 days",
1998+
"value": "30"
1999+
},
2000+
{
2001+
"label": "90 days",
2002+
"value": "90"
2003+
},
19962004
{
19972005
"label": "1 year",
19982006
"value": "365"

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,42 @@ export function SettingsSuperAdmin() {
6666
</p>
6767
</CCol>
6868
</CRow>
69+
<CRow>
70+
<CCol sm={12} md={12} className="mb-3">
71+
<p className="fw-lighter">Tenant Mode</p>
72+
<Form
73+
onSubmit={onSubmit}
74+
initialValues={partnerConfig.data}
75+
render={({ handleSubmit }) => (
76+
<>
77+
{partnerConfig.isFetching && <CSpinner size="sm" className="me-2" />}
78+
<CForm id="submitForm" onSubmit={handleSubmit}>
79+
<RFFCFormRadio
80+
name="TenantMode"
81+
label="Multi Tenant - GDAP Mode"
82+
value="default"
83+
/>
84+
<RFFCFormRadio
85+
name="TenantMode"
86+
label="Multi Tenant - Add Partner Tenant"
87+
value="PartnerTenantAvailable"
88+
/>
89+
<RFFCFormRadio
90+
name="TenantMode"
91+
label="Single Tenant - Own Tenant Mode"
92+
value="owntenant"
93+
/>
94+
</CForm>
95+
</>
96+
)}
97+
/>
98+
{webhookCreateResult.isSuccess && (
99+
<CippCallout color="info" dismissible>
100+
{webhookCreateResult?.data?.results}
101+
</CippCallout>
102+
)}
103+
</CCol>
104+
</CRow>
69105
</>
70106
</>
71107
</CippButtonCard>

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()

version_latest.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.2.0
1+
6.2.1

0 commit comments

Comments
 (0)