diff --git a/new-ui/src/pages/full/OverviewPage/components/ConnectModal/hooks/useConnectModal.tsx b/new-ui/src/pages/full/OverviewPage/components/ConnectModal/hooks/useConnectModal.tsx index 4e79e839a..d7fd040f5 100644 --- a/new-ui/src/pages/full/OverviewPage/components/ConnectModal/hooks/useConnectModal.tsx +++ b/new-ui/src/pages/full/OverviewPage/components/ConnectModal/hooks/useConnectModal.tsx @@ -12,6 +12,7 @@ interface StoreValues { view: ConnectModalViewValue | null; perviousView: ConnectModalViewValue | null; postureError: string | null; + connectionError: string | null; autoStartOpenId: boolean; mfaMethod: MfaMethodValue; } @@ -23,6 +24,7 @@ const defaults: StoreValues = { view: null, perviousView: null, postureError: null, + connectionError: null, autoStartOpenId: false, } as const; diff --git a/new-ui/src/pages/full/OverviewPage/components/ConnectModal/views/ConnectModalConnectionError/ConnectModalConnectionError.tsx b/new-ui/src/pages/full/OverviewPage/components/ConnectModal/views/ConnectModalConnectionError/ConnectModalConnectionError.tsx index 5b74a1c94..b8758f529 100644 --- a/new-ui/src/pages/full/OverviewPage/components/ConnectModal/views/ConnectModalConnectionError/ConnectModalConnectionError.tsx +++ b/new-ui/src/pages/full/OverviewPage/components/ConnectModal/views/ConnectModalConnectionError/ConnectModalConnectionError.tsx @@ -2,17 +2,16 @@ import './style.scss'; import { Button } from '../../../../../../../shared/components/Button/Button'; import { ButtonVariant } from '../../../../../../../shared/components/Button/types'; import { Controls } from '../../../../../../../shared/components/Controls/Controls'; +import { DEFAULT_CONNECTION_ERROR } from '../../../../../../../shared/components/LocationCard/api/connectError'; import { useConnectModal } from '../../hooks/useConnectModal'; export const ConnectModalConnectionError = () => { const close = () => useConnectModal.setState({ visible: false }); + const connectionError = useConnectModal((s) => s.connectionError); return (
-

- One or more external services are unavailable or unreachable. This may be caused - by a network issue or a temporary service outage. Please try again later. -

+

{connectionError ?? DEFAULT_CONNECTION_ERROR}