Skip to content

FEAT: Add auto-expanding archive functionality for users #3728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions src/pages/email/administration/mailboxes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { Layout as DashboardLayout } from "/src/layouts/index.js";
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx";
import Link from "next/link";
import { Button } from "@mui/material";
import { Add, Mail } from "@mui/icons-material";

import {
Archive,
MailOutline,
Expand All @@ -13,6 +11,8 @@ import {
VisibilityOff,
PhonelinkLock,
Key,
PostAdd,
Add,
} from "@mui/icons-material";
import { TrashIcon, MagnifyingGlassIcon, PlayCircleIcon } from "@heroicons/react/24/outline";

Expand Down Expand Up @@ -85,11 +85,22 @@ const Page = () => {
type: "POST",
icon: <Archive />,
url: "/api/ExecEnableArchive",
data: { ID: "UPN" },
data: { ID: "Id", username: "UPN" },
confirmText: "Are you sure you want to enable the online archive for this user?",
multiPost: false,
condition: (row) => row.ArchiveGuid === "00000000-0000-0000-0000-000000000000",
},
{
label: "Enable Auto-Expanding Archive",
type: "POST",
icon: <PostAdd />,
url: "/api/ExecEnableAutoExpandingArchive",
data: { ID: "Id", username: "UPN" },
confirmText:
"Are you sure you want to enable auto-expanding archive for this user? The archive must already be enabled.",
multiPost: false,
condition: (row) => row.ArchiveGuid !== "00000000-0000-0000-0000-000000000000",
},
{
label: "Hide from Global Address List",
type: "POST",
Expand Down
Loading