diff --git a/frontend-modern/src/components/PMG/MailGateway.tsx b/frontend-modern/src/components/PMG/MailGateway.tsx index 63dc03850..ea24f3888 100644 --- a/frontend-modern/src/components/PMG/MailGateway.tsx +++ b/frontend-modern/src/components/PMG/MailGateway.tsx @@ -22,7 +22,7 @@ const parseTimestamp = (value?: string) => { }; const MailGateway: Component = () => { - const { state, connected } = useWebSocket(); + const { state, connected, reconnecting, reconnect } = useWebSocket(); const instances = createMemo(() => state.pmg ?? []); return ( @@ -30,15 +30,30 @@ const MailGateway: Component = () => { - + + } - title="Disconnected from backend" - description="Waiting for backend to reconnect before loading Mail Gateway details." + title="Connection lost" + description={ + reconnecting() + ? 'Attempting to reconnect…' + : 'Unable to connect to the backend server' + } + tone="danger" + actions={ + !reconnecting() ? ( + + ) : undefined + } />