From d6732b5d03666b9b9a953ff5edbf10549cec0abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20Kj=C3=A6rg=C3=A5rd?= Date: Mon, 3 Mar 2025 18:24:13 +0100 Subject: [PATCH] feat: add functionality to enable auto-expanding archive for users --- .../email/administration/mailboxes/index.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/pages/email/administration/mailboxes/index.js b/src/pages/email/administration/mailboxes/index.js index 716f1abb4c53..c4014ca25d38 100644 --- a/src/pages/email/administration/mailboxes/index.js +++ b/src/pages/email/administration/mailboxes/index.js @@ -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, @@ -13,6 +11,8 @@ import { VisibilityOff, PhonelinkLock, Key, + PostAdd, + Add, } from "@mui/icons-material"; import { TrashIcon, MagnifyingGlassIcon, PlayCircleIcon } from "@heroicons/react/24/outline"; @@ -85,11 +85,22 @@ const Page = () => { type: "POST", icon: , 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: , + 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",