Skip to content

Commit ecfa093

Browse files
authored
Merge pull request #129 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 877386c + a9b3e8a commit ecfa093

File tree

10 files changed

+32
-23
lines changed

10 files changed

+32
-23
lines changed

src/components/CippCards/CippPageCard.jsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useRouter } from "next/router";
22
import { Box, Container, Stack, Button, SvgIcon, Typography, Card } from "@mui/material";
33
import ArrowLeftIcon from "@mui/icons-material/ArrowLeft";
44
import Head from "next/head";
5+
import { CippHead } from "../CippComponents/CippHead";
56
const CippPageCard = (props) => {
67
const {
78
title,
@@ -20,9 +21,7 @@ const CippPageCard = (props) => {
2021

2122
return (
2223
<>
23-
<Head>
24-
<title>{title}</title>
25-
</Head>
24+
<CippHead title={title} />
2625
<Box
2726
sx={{
2827
flexGrow: 1,
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Head from "next/head";
2+
import { useSettings } from "../../hooks/use-settings";
3+
4+
export const CippHead = ({ title }) => {
5+
const tenant = useSettings().currentTenant;
6+
return (
7+
<Head>
8+
<title>{tenant ? `${tenant} - ${title}` : title}</title>
9+
</Head>
10+
);
11+
};

src/components/CippComponents/CippTablePage.jsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Box, Container, Stack } from "@mui/system";
33
import Head from "next/head";
44
import { CippDataTable } from "../CippTable/CippDataTable";
55
import { useSettings } from "../../hooks/use-settings";
6+
import { CippHead } from "./CippHead";
67

78
export const CippTablePage = (props) => {
89
const {
@@ -28,9 +29,7 @@ export const CippTablePage = (props) => {
2829
const tenant = useSettings().currentTenant;
2930
return (
3031
<>
31-
<Head>
32-
<title>{title}</title>
33-
</Head>
32+
<CippHead title={title} />
3433
<Box sx={sx}>
3534
<Container maxWidth={false} sx={{ height: "100%" }}>
3635
<Stack spacing={2} sx={{ height: "100%" }}>

src/components/CippComponents/CippTenantSelector.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export const CippTenantSelector = (props) => {
5858
settings.handleUpdate({
5959
currentTenant: currentTenant.value,
6060
});
61+
//if we have a tenantfilter, we add the tenantfilter to the title of the tab/page so its "Tenant - original title".
6162
}
6263
}, [currentTenant?.value]);
6364

src/components/CippFormPages/CippFormPage.jsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { ApiPostCall } from "../../api/ApiCall";
1616
import { CippApiResults } from "../CippComponents/CippApiResults";
1717
import { useEffect } from "react";
1818
import { useFormState } from "react-hook-form";
19+
import { CippHead } from "../CippComponents/CippHead";
1920

2021
const CippFormPage = (props) => {
2122
const {
@@ -86,9 +87,7 @@ const CippFormPage = (props) => {
8687
};
8788
return (
8889
<>
89-
<Head>
90-
<title>{title}</title>
91-
</Head>
90+
<CippHead title={title} />
9291
<Box
9392
sx={{
9493
flexGrow: 1,
@@ -134,7 +133,7 @@ const CippFormPage = (props) => {
134133
<Stack spacing={2} direction="row">
135134
{addedButtons && addedButtons}
136135
<Button
137-
disabled={postCall.isPending || !isValid || (!allowResubmit && (!isDirty))}
136+
disabled={postCall.isPending || !isValid || (!allowResubmit && !isDirty)}
138137
onClick={formControl.handleSubmit(handleSubmit)}
139138
type="submit"
140139
variant="contained"

src/components/CippWizard/CippWizardPage.jsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Box, Button, Container, Stack, SvgIcon } from "@mui/material";
33
import { CippWizard } from "./CippWizard";
44
import { useRouter } from "next/router";
55
import { ArrowLeftIcon } from "@mui/x-date-pickers";
6+
import { CippHead } from "../CippComponents/CippHead";
67

78
const CippWizardPage = (props) => {
89
const router = useRouter();
@@ -17,9 +18,7 @@ const CippWizardPage = (props) => {
1718
} = props;
1819
return (
1920
<>
20-
<Head>
21-
<title>{wizardTitle}</title>
22-
</Head>
21+
<CippHead title={wizardTitle} />
2322
<Box
2423
sx={{
2524
backgroundColor: "background.default",

src/pages/email/administration/mailboxes/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,15 @@ const Page = () => {
121121
url: "/api/ExecStartManagedFolderAssistant",
122122
icon: <PlayCircleIcon />,
123123
data: {
124-
ID: "UPN",
124+
ID: "ExchangeGuid",
125+
UserPrincipalName: "UPN",
125126
},
126127
confirmText: "Are you sure you want to start the managed folder assistant for this user?",
127128
},
128129
{
129130
label: "Delete Mailbox",
130131
type: "POST",
131-
icon: <TrashIcon />, // Added
132+
icon: <TrashIcon />,
132133
url: "/api/RemoveUser",
133134
data: { ID: "UPN" },
134135
confirmText: "Are you sure you want to delete this mailbox?",

src/pages/identity/administration/devices/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const Page = () => {
4646
type: "POST",
4747
url: "/api/ExecGetRecoveryKey",
4848
data: {
49-
GUID: "id",
49+
GUID: "deviceId",
5050
},
5151
confirmText: "Are you sure you want to retrieve the BitLocker keys?",
5252
multiPost: false,

src/pages/tenant/gdap-management/onboarding/start.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,9 @@ const Page = () => {
5353
data: {
5454
TenantFilter: "",
5555
Endpoint: "tenantRelationships/delegatedAdminRelationships",
56-
$filter:
57-
"(status eq 'active' or status eq 'approvalPending') and not startsWith(displayName,'MLT_')",
5856
},
5957
queryKey: "GDAPRelationshipOnboarding",
6058
});
61-
6259
const onboardingList = ApiGetCallWithPagination({
6360
url: "/api/ListTenantOnboarding",
6461
queryKey: "ListTenantOnboarding",
@@ -108,7 +105,11 @@ const Page = () => {
108105
(relationship) => relationship?.id === queryId
109106
);
110107

111-
if (relationship) {
108+
if (
109+
relationship &&
110+
(relationship?.status === "active" || relationship?.status === "approvalPending") &&
111+
!relationship?.customer?.displayName.startsWith("MLT_")
112+
) {
112113
formValue = {
113114
label:
114115
(relationship?.customer?.displayName ?? "Pending Invite") +

src/pages/tenant/standards/bpa-report/builder.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { useRouter } from "next/router";
2424
import { CippFormCondition } from "../../../../components/CippComponents/CippFormCondition";
2525
import { ApiGetCall, ApiPostCall } from "../../../../api/ApiCall";
2626
import { CippApiResults } from "../../../../components/CippComponents/CippApiResults";
27+
import { CippHead } from "../../../../components/CippComponents/CippHead";
2728

2829
const Page = () => {
2930
const router = useRouter();
@@ -177,9 +178,7 @@ const Page = () => {
177178
const onSubmit = (data) => {};
178179
return (
179180
<>
180-
<Head>
181-
<title>{pageTitle}</title>
182-
</Head>
181+
<CippHead title={pageTitle} />
183182
<Box
184183
sx={{
185184
flexGrow: 1,

0 commit comments

Comments
 (0)