File tree Expand file tree Collapse file tree 3 files changed +48
-30
lines changed
administration/quarantine Expand file tree Collapse file tree 3 files changed +48
-30
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,6 @@ export const nativeMenuItems = [
360
360
title : "Mailbox Client Access Settings" ,
361
361
path : "/email/reports/mailbox-cas-settings" ,
362
362
} ,
363
- { title : "Message Trace" , path : "/email/reports/message-trace" } ,
364
363
{
365
364
title : "Anti-Phishing Filters" ,
366
365
path : "/email/reports/antiphishing-filters" ,
@@ -417,6 +416,7 @@ export const nativeMenuItems = [
417
416
title : "Email Tools" ,
418
417
path : "/email/tools" ,
419
418
items : [
419
+ { title : "Message Trace" , path : "/email/tools/message-trace" } ,
420
420
{ title : "Mailbox Restores" , path : "/email/tools/mailbox-restores" } ,
421
421
{ title : "Message Viewer" , path : "/email/tools/message-viewer" } ,
422
422
] ,
Original file line number Diff line number Diff line change @@ -175,22 +175,30 @@ const Page = () => {
175
175
</ IconButton >
176
176
</ DialogTitle >
177
177
< DialogContent dividers >
178
- < CippDataTable
179
- noCard = { true }
180
- title = "Message Trace Details"
181
- simpleColumns = { detailColumns }
182
- data = { traceDetails ?? [ ] }
183
- refreshFunction = { ( ) =>
184
- getMessageTraceDetails . mutate ( {
185
- url : "/api/ListMessageTrace" ,
186
- data : {
187
- tenantFilter : tenantFilter ,
188
- messageId : traceMessageId ,
189
- } ,
190
- } )
191
- }
192
- isFetching = { getMessageTraceDetails . isPending }
193
- />
178
+ { getMessageTraceDetails . isPending && (
179
+ < Typography variant = "body1" sx = { { py : 4 } } >
180
+ < CircularProgress size = { 20 } color = "inherit" sx = { { mr : 1 } } /> Loading message trace
181
+ details...
182
+ </ Typography >
183
+ ) }
184
+ { getMessageTraceDetails . isSuccess && (
185
+ < CippDataTable
186
+ noCard = { true }
187
+ title = "Message Trace Details"
188
+ simpleColumns = { detailColumns }
189
+ data = { traceDetails ?? [ ] }
190
+ refreshFunction = { ( ) =>
191
+ getMessageTraceDetails . mutate ( {
192
+ url : "/api/ListMessageTrace" ,
193
+ data : {
194
+ tenantFilter : tenantFilter ,
195
+ messageId : traceMessageId ,
196
+ } ,
197
+ } )
198
+ }
199
+ isFetching = { getMessageTraceDetails . isPending }
200
+ />
201
+ ) }
194
202
</ DialogContent >
195
203
</ Dialog >
196
204
</ >
Original file line number Diff line number Diff line change 7
7
IconButton ,
8
8
Container ,
9
9
Stack ,
10
+ Typography ,
11
+ CircularProgress ,
10
12
} from "@mui/material" ;
11
13
import { useForm } from "react-hook-form" ;
12
14
import CippFormComponent from "/src/components/CippComponents/CippFormComponent" ;
@@ -313,19 +315,27 @@ const Page = () => {
313
315
</ IconButton >
314
316
</ DialogTitle >
315
317
< DialogContent dividers >
316
- < CippDataTable
317
- noCard = { true }
318
- title = "Message Trace Details"
319
- simpleColumns = { detailColumns }
320
- data = { traceDetails ?? [ ] }
321
- refreshFunction = { ( ) =>
322
- startMessageTraceDetail ( {
323
- MessageTraceId : messageTraceId ,
324
- RecipientAddress : messageTraceRecipient ,
325
- } )
326
- }
327
- isFetching = { messageTraceDetail . isPending }
328
- />
318
+ { messageTraceDetail . isPending && (
319
+ < Typography variant = "body1" sx = { { py : 4 } } >
320
+ < CircularProgress size = { 20 } color = "inherit" sx = { { mr : 1 } } /> Loading message trace
321
+ details...
322
+ </ Typography >
323
+ ) }
324
+ { messageTraceDetail . isSuccess && (
325
+ < CippDataTable
326
+ noCard = { true }
327
+ title = "Message Trace Details"
328
+ simpleColumns = { detailColumns }
329
+ data = { traceDetails ?? [ ] }
330
+ refreshFunction = { ( ) =>
331
+ startMessageTraceDetail ( {
332
+ MessageTraceId : messageTraceId ,
333
+ RecipientAddress : messageTraceRecipient ,
334
+ } )
335
+ }
336
+ isFetching = { messageTraceDetail . isPending }
337
+ />
338
+ ) }
329
339
</ DialogContent >
330
340
</ Dialog >
331
341
</ >
You can’t perform that action at this time.
0 commit comments