Skip to content

Commit 0343124

Browse files
authored
Merge pull request #42 from KelvinTegelaar/main
[pull] main from KelvinTegelaar:main
2 parents b6b04c9 + 007ec77 commit 0343124

File tree

24 files changed

+98
-73
lines changed

24 files changed

+98
-73
lines changed

public/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "7.0.3"
2+
"version": "7.0.4"
33
}

src/components/CippComponents/CippFormLicenseSelector.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { CippFormComponent } from "./CippFormComponent";
3-
import { useWatch } from "react-hook-form";
43
import { getCippLicenseTranslation } from "../../utils/get-cipp-license-translation";
4+
import { useSettings } from "../../hooks/use-settings";
55

66
export const CippFormLicenseSelector = ({
77
formControl,
@@ -12,25 +12,26 @@ export const CippFormLicenseSelector = ({
1212
addedField,
1313
...other
1414
}) => {
15-
const currentTenant = useWatch({ control: formControl.control, name: "tenantFilter" });
15+
const userSettingsDefaults = useSettings();
1616
return (
1717
<CippFormComponent
1818
name={name}
1919
label={label}
2020
type="autoComplete"
2121
formControl={formControl}
2222
multiple={multiple}
23+
creatable={false}
2324
api={{
2425
addedField: addedField,
25-
tenantFilter: currentTenant ? currentTenant.value : undefined,
26+
tenantFilter: userSettingsDefaults.currentTenant ?? undefined,
2627
url: "/api/ListGraphRequest",
2728
dataKey: "Results",
2829
labelField: (option) =>
2930
`${getCippLicenseTranslation([option])} (${
3031
option.prepaidUnits.enabled - option.consumedUnits
3132
} available)`,
3233
valueField: "skuId",
33-
queryKey: `ListLicenses-${currentTenant?.value}`,
34+
queryKey: `ListLicenses-${userSettingsDefaults.currentTenant ?? undefined}`,
3435
data: {
3536
Endpoint: "subscribedSkus",
3637
$count: true,

src/components/CippComponents/CippTenantSelector.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export const CippTenantSelector = (props) => {
217217
icon: <Laptop />,
218218
},
219219
{
220-
label: "Sharepoint Portal",
220+
label: "SharePoint Portal",
221221
link: `https://admin.microsoft.com/Partner/beginclientsession.aspx?CTID=${currentTenant?.addedFields?.customerId}&CSDEST=SharePoint`,
222222
icon: <Share />,
223223
},

src/components/CippComponents/CippTranslations.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const CippTranslations = {
3535
portal_intune: "Intune Portal",
3636
portal_security: "Security Portal",
3737
portal_compliance: "Compliance Portal",
38-
portal_sharepoint: "Sharepoint Portal",
38+
portal_sharepoint: "SharePoint Portal",
3939
"@odata.type": "Type",
4040
roleDefinitionId: "GDAP Role",
4141
FromIP: "From IP",

src/components/CippFormPages/CippAddEditUser.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@ const CippAddEditUser = (props) => {
249249
formControl={formControl}
250250
/>
251251
</Grid>
252+
<Grid item xs={12} md={6}>
253+
<CippFormComponent
254+
type="textField"
255+
fullWidth
256+
label="Alternate Email Address"
257+
name="otherMails"
258+
formControl={formControl}
259+
/>
260+
</Grid>
252261
{userSettingsDefaults?.userAttributes?.map((attribute, idx) => (
253262
<Grid item xs={6} key={idx}>
254263
<CippFormComponent

src/data/CIPPDefaultGDAPRoles.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"value": "69091246-20e8-4a56-aa4d-066075b2a7a8"
3333
},
3434
{
35-
"label": "Sharepoint Administrator",
35+
"label": "SharePoint Administrator",
3636
"value": "f28a1f50-f6e7-4571-818b-6a12f2af6b6c"
3737
},
3838
{

src/data/intuneCollection.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73017,7 +73017,7 @@
7301773017
},
7301873018
{
7301973019
"id": "device_vendor_msft_policy_config_fslogixv1~policy~fslogix~odfc_odfcincludesharepoint",
73020-
"displayName": "Include Sharepoint",
73020+
"displayName": "Include SharePoint",
7302173021
"options": [
7302273022
{
7302373023
"id": "device_vendor_msft_policy_config_fslogixv1~policy~fslogix~odfc_odfcincludesharepoint_0",
@@ -209011,7 +209011,7 @@
209011209011
},
209012209012
{
209013209013
"id": "user_vendor_msft_policy_config_outlk16v2~policy~l_microsoftofficeoutlook~l_toolsaccounts~l_sharepointintegration_l_disablesharepointintegrationinoutlook",
209014-
"displayName": "Do not allow Sharepoint-Outlook integration (User)",
209014+
"displayName": "Do not allow SharePoint-Outlook integration (User)",
209015209015
"options": [
209016209016
{
209017209017
"id": "user_vendor_msft_policy_config_outlk16v2~policy~l_microsoftofficeoutlook~l_toolsaccounts~l_sharepointintegration_l_disablesharepointintegrationinoutlook_0",

src/data/portals.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
"icon": "shield-alt"
7373
},
7474
{
75-
"label": "Sharepoint Admin",
76-
"name": "Sharepoint_Admin",
75+
"label": "SharePoint Admin",
76+
"name": "SharePoint_Admin",
7777
"url": "https://admin.microsoft.com/Partner/beginclientsession.aspx?CTID=customerId&CSDEST=SharePoint",
7878
"variable": "customerId",
7979
"target": "_blank",

src/data/standards.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@
498498
"name": "standards.DisableM365GroupUsers",
499499
"cat": "Entra (AAD) Standards",
500500
"tag": ["lowimpact"],
501-
"helpText": "Restricts M365 group creation to certain admin roles. This disables the ability to create Teams, Sharepoint sites, Planner, etc",
501+
"helpText": "Restricts M365 group creation to certain admin roles. This disables the ability to create Teams, SharePoint sites, Planner, etc",
502502
"docsDescription": "Users by default are allowed to create M365 groups. This restricts M365 group creation to certain admin roles. This disables the ability to create Teams, SharePoint sites, Planner, etc",
503503
"addedComponent": [],
504504
"label": "Disable M365 Group creation by users",
@@ -1682,7 +1682,7 @@
16821682
"name": "standards.AtpPolicyForO365",
16831683
"cat": "Defender Standards",
16841684
"tag": ["lowimpact", "CIS"],
1685-
"helpText": "This creates a Atp policy that enables Defender for Office 365 for Sharepoint, OneDrive and Microsoft Teams.",
1685+
"helpText": "This creates a Atp policy that enables Defender for Office 365 for SharePoint, OneDrive and Microsoft Teams.",
16861686
"addedComponent": [
16871687
{
16881688
"type": "switch",
@@ -2360,7 +2360,7 @@
23602360
"name": "standards.sharingCapability",
23612361
"cat": "SharePoint Standards",
23622362
"tag": ["highimpact", "CIS"],
2363-
"helpText": "Sets the default sharing level for OneDrive and Sharepoint. This is a tenant wide setting and overrules any settings set on the site level",
2363+
"helpText": "Sets the default sharing level for OneDrive and SharePoint. This is a tenant wide setting and overrules any settings set on the site level",
23642364
"addedComponent": [
23652365
{
23662366
"type": "autoComplete",
@@ -2387,7 +2387,7 @@
23872387
]
23882388
}
23892389
],
2390-
"label": "Set Sharing Level for OneDrive and Sharepoint",
2390+
"label": "Set Sharing Level for OneDrive and SharePoint",
23912391
"impact": "High Impact",
23922392
"impactColour": "danger",
23932393
"powershellEquivalent": "Update-MgBetaAdminSharepointSetting",

src/layouts/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ export const nativeMenuItems = [
3737
{ title: "Users", path: "/identity/administration/users" },
3838
{ title: "Risky Users", path: "/identity/administration/risky-users" },
3939
{ title: "Groups", path: "/identity/administration/groups" },
40-
{ title: "Devices", path: "/identity/administration/devices" },
4140
{
4241
title: "Group Templates",
4342
path: "/identity/administration/group-templates",
4443
},
44+
{ title: "Devices", path: "/identity/administration/devices" },
4545
{ title: "Deleted Items", path: "/identity/administration/deleted-items" },
4646
{ title: "Roles", path: "/identity/administration/roles" },
4747
{ title: "JIT Admin", path: "/identity/administration/jit-admin" },
@@ -468,7 +468,7 @@ export const nativeMenuItems = [
468468
title: "Timers",
469469
path: "/cipp/advanced/timers",
470470
roles: ["superadmin"],
471-
}
471+
},
472472
],
473473
},
474474
],

0 commit comments

Comments
 (0)