Skip to content

Commit 281c6a2

Browse files
authored
Merge pull request #3728 from kris6673/auto-expanding-archive
FEAT: Add auto-expanding archive functionality for users
2 parents 976dfb3 + d6732b5 commit 281c6a2

File tree

1 file changed

+14
-3
lines changed
  • src/pages/email/administration/mailboxes

1 file changed

+14
-3
lines changed

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { Layout as DashboardLayout } from "/src/layouts/index.js";
22
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx";
33
import Link from "next/link";
44
import { Button } from "@mui/material";
5-
import { Add, Mail } from "@mui/icons-material";
6-
75
import {
86
Archive,
97
MailOutline,
@@ -13,6 +11,8 @@ import {
1311
VisibilityOff,
1412
PhonelinkLock,
1513
Key,
14+
PostAdd,
15+
Add,
1616
} from "@mui/icons-material";
1717
import { TrashIcon, MagnifyingGlassIcon, PlayCircleIcon } from "@heroicons/react/24/outline";
1818

@@ -85,11 +85,22 @@ const Page = () => {
8585
type: "POST",
8686
icon: <Archive />,
8787
url: "/api/ExecEnableArchive",
88-
data: { ID: "UPN" },
88+
data: { ID: "Id", username: "UPN" },
8989
confirmText: "Are you sure you want to enable the online archive for this user?",
9090
multiPost: false,
9191
condition: (row) => row.ArchiveGuid === "00000000-0000-0000-0000-000000000000",
9292
},
93+
{
94+
label: "Enable Auto-Expanding Archive",
95+
type: "POST",
96+
icon: <PostAdd />,
97+
url: "/api/ExecEnableAutoExpandingArchive",
98+
data: { ID: "Id", username: "UPN" },
99+
confirmText:
100+
"Are you sure you want to enable auto-expanding archive for this user? The archive must already be enabled.",
101+
multiPost: false,
102+
condition: (row) => row.ArchiveGuid !== "00000000-0000-0000-0000-000000000000",
103+
},
93104
{
94105
label: "Hide from Global Address List",
95106
type: "POST",

0 commit comments

Comments
 (0)