@@ -2,8 +2,6 @@ import { Layout as DashboardLayout } from "/src/layouts/index.js";
2
2
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx" ;
3
3
import Link from "next/link" ;
4
4
import { Button } from "@mui/material" ;
5
- import { Add , Mail } from "@mui/icons-material" ;
6
-
7
5
import {
8
6
Archive ,
9
7
MailOutline ,
@@ -13,6 +11,8 @@ import {
13
11
VisibilityOff ,
14
12
PhonelinkLock ,
15
13
Key ,
14
+ PostAdd ,
15
+ Add ,
16
16
} from "@mui/icons-material" ;
17
17
import { TrashIcon , MagnifyingGlassIcon , PlayCircleIcon } from "@heroicons/react/24/outline" ;
18
18
@@ -85,11 +85,22 @@ const Page = () => {
85
85
type : "POST" ,
86
86
icon : < Archive /> ,
87
87
url : "/api/ExecEnableArchive" ,
88
- data : { ID : "UPN" } ,
88
+ data : { ID : "Id" , username : " UPN" } ,
89
89
confirmText : "Are you sure you want to enable the online archive for this user?" ,
90
90
multiPost : false ,
91
91
condition : ( row ) => row . ArchiveGuid === "00000000-0000-0000-0000-000000000000" ,
92
92
} ,
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
+ } ,
93
104
{
94
105
label : "Hide from Global Address List" ,
95
106
type : "POST" ,
0 commit comments