Skip to content

Commit ad2a04f

Browse files
Merge pull request #2403 from Ren-Roros-Digital/QuarantineCheckbox
Added checkbox to QuarantineList
2 parents 4364993 + 3477cb2 commit ad2a04f

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

src/views/email-exchange/administration/QuarantineList.jsx

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const QuarantineList = () => {
9898
name: 'Reason',
9999
sortable: true,
100100
exportSelector: 'Type',
101-
maxWidth: '150px',
101+
maxWidth: '200px',
102102
},
103103
{
104104
selector: (row) => row['ReceivedTime'],
@@ -126,7 +126,7 @@ const QuarantineList = () => {
126126
{
127127
name: 'Actions',
128128
cell: Offcanvas,
129-
maxWidth: '150px',
129+
maxWidth: '100px',
130130
},
131131
]
132132

@@ -139,6 +139,32 @@ const QuarantineList = () => {
139139
reportName: `${tenant?.defaultDomainName}-Mailbox-Quarantine`,
140140
path: '/api/ListMailQuarantine',
141141
columns,
142+
tableProps: {
143+
selectableRows: true,
144+
actionsList: [
145+
{
146+
label: 'Release',
147+
color: 'info',
148+
modal: true,
149+
modalUrl: `/api/ExecQuarantineManagement?TenantFilter=${tenant.defaultDomainName}&ID=!Identity&Type=Release`,
150+
modalMessage: 'Are you sure you want to release these messages?',
151+
},
152+
{
153+
label: 'Deny',
154+
color: 'info',
155+
modal: true,
156+
modalUrl: `/api/ExecQuarantineManagement?TenantFilter=${tenant.defaultDomainName}&ID=!Identity&Type=Deny`,
157+
modalMessage: 'Are you sure you want to deny these messages?',
158+
},
159+
{
160+
label: 'Release & Allow Sender',
161+
color: 'info',
162+
modal: true,
163+
modalUrl: `/api/ExecQuarantineManagement?TenantFilter=${tenant.defaultDomainName}&ID=!Identity&Type=Release&AllowSender=true`,
164+
modalMessage: 'Are you sure you want to release these messages, and add the senders to the whitelist?',
165+
},
166+
]
167+
},
142168
params: { TenantFilter: tenant?.defaultDomainName },
143169
}}
144170
/>

0 commit comments

Comments
 (0)