From 5f044c22bcc2d2534877a54b16cf9c03cf7bd421 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 6 Apr 2016 11:44:41 -0700 Subject: [PATCH] fix(error): Show actual API domain in connection error bar --- .../lib/headers/connection-status-header.jsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/internal_packages/notifications/lib/headers/connection-status-header.jsx b/internal_packages/notifications/lib/headers/connection-status-header.jsx index b612036cd..c6b915f6d 100644 --- a/internal_packages/notifications/lib/headers/connection-status-header.jsx +++ b/internal_packages/notifications/lib/headers/connection-status-header.jsx @@ -1,4 +1,9 @@ -import {NylasSyncStatusStore, React, Actions} from 'nylas-exports'; +import { + NylasAPI, + NylasSyncStatusStore, + React, + Actions, +} from 'nylas-exports'; import {RetinaImg} from 'nylas-component-kit'; export default class ConnectionStatusHeader extends React.Component { @@ -81,6 +86,8 @@ export default class ConnectionStatusHeader extends React.Component { return (); } + const apiDomain = NylasAPI.APIRoot.split('//').pop(); + return (
@@ -89,7 +96,7 @@ export default class ConnectionStatusHeader extends React.Component { name="icon-alert-onred.png" mode={RetinaImg.Mode.ContentPreserve} />
- Nylas N1 isn't able to reach api.nylas.com. Retrying {nextRetryText}. + Nylas N1 isn't able to reach {apiDomain}. Retrying {nextRetryText}.
Try Again Now