mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
fix(error): Show actual API domain in connection error bar
This commit is contained in:
parent
2dbd1a0914
commit
5f044c22bc
1 changed files with 9 additions and 2 deletions
|
@ -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 (<span/>);
|
||||
}
|
||||
|
||||
const apiDomain = NylasAPI.APIRoot.split('//').pop();
|
||||
|
||||
return (
|
||||
<div className="connection-status-header notifications-sticky">
|
||||
<div className={"notifications-sticky-item notification-offline"}>
|
||||
|
@ -89,7 +96,7 @@ export default class ConnectionStatusHeader extends React.Component {
|
|||
name="icon-alert-onred.png"
|
||||
mode={RetinaImg.Mode.ContentPreserve} />
|
||||
<div className="message">
|
||||
Nylas N1 isn't able to reach api.nylas.com. Retrying {nextRetryText}.
|
||||
Nylas N1 isn't able to reach {apiDomain}. Retrying {nextRetryText}.
|
||||
</div>
|
||||
<a className="action default" onClick={this.onTryAgain}>
|
||||
Try Again Now
|
||||
|
|
Loading…
Reference in a new issue