Skip to content

Commit 912bc12

Browse files
authored
Merge branch 'KelvinTegelaar:dev' into dev
2 parents e53fe8c + 1ea3338 commit 912bc12

File tree

24 files changed

+245
-129
lines changed

24 files changed

+245
-129
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"license": "AGPL-3.0",
1010
"engines": {
11-
"node": "^20.18.2"
11+
"node": "^20.18.1"
1212
},
1313
"repository": {
1414
"type": "git",
12.7 KB
Loading
30.4 KB
Loading

src/components/CippComponents/CippApiDialog.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export const CippApiDialog = (props) => {
7979
} else {
8080
Object.keys(dataObject).forEach((key) => {
8181
const value = dataObject[key];
82-
8382
if (typeof value === "string" && value.startsWith("!")) {
8483
newData[key] = value.slice(1);
8584
} else if (typeof value === "string") {

src/pages/cipp/logs/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ const Page = () => {
9595
apiUrl={apiUrl}
9696
simpleColumns={simpleColumns}
9797
queryKey={`Listlogs-${dateFilter}-${filterEnabled}`}
98+
tenantInTitle={false}
9899
apiData={{
99100
DateFilter: dateFilter, // Pass date filter from state
100101
Filter: filterEnabled, // Pass filter toggle state

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,31 @@ import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx"
33
import { Edit } from "@mui/icons-material";
44
import { Button } from "@mui/material";
55
import Link from "next/link";
6+
import TrashIcon from '@heroicons/react/24/outline/TrashIcon';
67

78
const Page = () => {
89
const pageTitle = "Contacts";
910

1011
const actions = [
1112
{
1213
label: "Remove Contact",
13-
type: "POST",
14+
type: "GET",
1415
url: "/api/RemoveContact",
1516
data: {
16-
TenantFilter: "Tenant",
1717
GUID: "id",
1818
},
1919
confirmText: "Are you sure you want to delete this contact?",
2020
color: "danger",
21+
icon: <TrashIcon />,
2122
},
23+
/* TODO: Implement edit contact
2224
{
2325
label: "Edit Contact",
2426
link: "/email/administration/edit-contact/[id]",
2527
multiPost: false,
2628
icon: <Edit />,
2729
color: "warning",
28-
},
30+
},*/
2931
];
3032

3133
const simpleColumns = ["displayName", "mail", "companyName", "onPremisesSyncEnabled"];

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

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,93 @@ const Page = () => {
131131
confirmText: "Are you sure you want to delete this mailbox?",
132132
multiPost: false,
133133
},
134+
{
135+
label: "Copy Sent Items to Shared Mailbox",
136+
type: "GET",
137+
url: "/api/ExecCopyForSent",
138+
data: { ID: "UPN" },
139+
confirmText: "Are you sure you want to enable Copy Sent Items to Shared Mailbox?",
140+
icon: <MailOutline />,
141+
condition: (row) =>
142+
row.MessageCopyForSentAsEnabled === false && row.recipientTypeDetails === "SharedMailbox",
143+
},
144+
{
145+
label: "Disable Copy Sent Items to Shared Mailbox",
146+
type: "GET",
147+
url: "/api/ExecCopyForSent",
148+
data: { ID: "UPN", MessageCopyForSentAsEnabled: false },
149+
confirmText: "Are you sure you want to disable Copy Sent Items to Shared Mailbox?",
150+
icon: <MailOutline />,
151+
condition: (row) =>
152+
row.MessageCopyForSentAsEnabled === true && row.recipientTypeDetails === "SharedMailbox",
153+
},
154+
{
155+
label: "Set mailbox locale",
156+
type: "POST",
157+
url: "/api/ExecSetMailboxLocale",
158+
data: { user: "UPN", ProhibitSendQuota: true },
159+
confirmText: "Enter a locale, e.g. en-US",
160+
icon: <MailOutline />,
161+
fields: [
162+
{
163+
label: "Locale",
164+
name: "locale",
165+
type: "textField",
166+
placeholder: "e.g. en-US",
167+
},
168+
],
169+
},
170+
{
171+
label: "Set Send Quota",
172+
type: "POST",
173+
url: "/api/ExecSetMailboxQuota",
174+
data: { user: "UPN", ProhibitSendQuota: true },
175+
confirmText: "Enter a quota. e.g. 1000MB, 10GB,1TB",
176+
icon: <MailOutline />,
177+
fields: [
178+
{
179+
label: "Quota",
180+
name: "quota",
181+
type: "textField",
182+
placeholder: "e.g. 1000MB, 10GB,1TB",
183+
},
184+
],
185+
},
186+
{
187+
label: "Set Send and Receive Quota",
188+
type: "POST",
189+
url: "/api/ExecSetMailboxQuota",
190+
data: {
191+
user: "UPN",
192+
ProhibitSendReceiveQuota: true,
193+
},
194+
confirmText: "Enter a quota. e.g. 1000MB, 10GB,1TB",
195+
icon: <MailOutline />,
196+
fields: [
197+
{
198+
label: "Quota",
199+
name: "quota",
200+
type: "textField",
201+
placeholder: "e.g. 1000MB, 10GB,1TB",
202+
},
203+
],
204+
},
205+
{
206+
label: "Set Quota Warning Level",
207+
type: "POST",
208+
url: "/api/ExecSetMailboxQuota",
209+
data: { user: "UPN", IssueWarningQuota: true },
210+
confirmText: "Enter a quota. e.g. 1000MB, 10GB,1TB",
211+
icon: <MailOutline />,
212+
fields: [
213+
{
214+
label: "Quota",
215+
name: "quota",
216+
type: "textField",
217+
placeholder: "e.g. 1000MB, 10GB,1TB",
218+
},
219+
],
220+
},
134221
];
135222

136223
// Define off-canvas details

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const Page = () => {
101101
},
102102
confirmText: "Are you sure you want to release this message?",
103103
icon: <Done />,
104+
condition: (row) => row.ReleaseStatus !== "RELEASED",
104105
},
105106
{
106107
label: "Deny",
@@ -112,6 +113,7 @@ const Page = () => {
112113
},
113114
confirmText: "Are you sure you want to deny this message?",
114115
icon: <Block />,
116+
condition: (row) => row.ReleaseStatus !== "DENIED",
115117
},
116118
{
117119
label: "Release & Allow Sender",
@@ -125,6 +127,7 @@ const Page = () => {
125127
confirmText:
126128
"Are you sure you want to release this email and add the sender to the whitelist?",
127129
icon: <DoneAll />,
130+
condition: (row) => row.ReleaseStatus !== "RELEASED",
128131
},
129132
];
130133

src/pages/email/administration/tenant-allow-block-lists/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Layout as DashboardLayout } from "/src/layouts/index.js";
22
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx";
33
import { Button } from "@mui/material";
44
import Link from "next/link";
5+
import TrashIcon from '@heroicons/react/24/outline/TrashIcon';
56

67
const Page = () => {
78
const pageTitle = "Tenant Allow/Block Lists";
@@ -12,12 +13,12 @@ const Page = () => {
1213
type: "POST",
1314
url: "/api/RemoveTenantAllowBlockList",
1415
data: {
15-
TenantFilter: "Tenant",
1616
Entries: "Value",
1717
ListType: "ListType",
1818
},
1919
confirmText: "Are you sure you want to delete?",
2020
color: "danger",
21+
icon: <TrashIcon />,
2122
},
2223
];
2324

src/pages/email/reports/SharedMailboxEnabledAccount/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Layout as DashboardLayout } from "/src/layouts/index.js";
22
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx";
3+
import { Block } from "@mui/icons-material";
34

45
/*
56
NOTE for Devs:
@@ -18,10 +19,11 @@ const Page = () => {
1819
actions={[
1920
{
2021
label: "Block Sign In",
21-
type: "POST",
22+
type: "GET",
23+
icon: <Block />,
2224
url: "/api/ExecDisableUser",
23-
data: { TenantFilter: "Tenant", ID: "id" },
24-
confirmText: "Are you sure you want to block this user from signing in?",
25+
data: { ID: "id" },
26+
confirmText: "Are you sure you want to block the sign-in for this user?",
2527
},
2628
]}
2729
offCanvas={{

0 commit comments

Comments
 (0)