diff options
Diffstat (limited to 'src/components/auth/AuthLayout.js')
-rw-r--r-- | src/components/auth/AuthLayout.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/auth/AuthLayout.js b/src/components/auth/AuthLayout.js index 77b91fa1c..41bda2f67 100644 --- a/src/components/auth/AuthLayout.js +++ b/src/components/auth/AuthLayout.js | |||
@@ -21,6 +21,8 @@ import AppUpdateInfoBar from '../AppUpdateInfoBar'; | |||
21 | import { GITHUB_FERDIUM_URL } from '../../config'; | 21 | import { GITHUB_FERDIUM_URL } from '../../config'; |
22 | import Icon from '../ui/icon'; | 22 | import Icon from '../ui/icon'; |
23 | 23 | ||
24 | import { serverName } from '../../api/apiBase'; | ||
25 | |||
24 | class AuthLayout extends Component { | 26 | class AuthLayout extends Component { |
25 | static propTypes = { | 27 | static propTypes = { |
26 | children: oneOrManyChildElements.isRequired, | 28 | children: oneOrManyChildElements.isRequired, |
@@ -53,6 +55,10 @@ class AuthLayout extends Component { | |||
53 | 55 | ||
54 | const { intl } = this.props; | 56 | const { intl } = this.props; |
55 | 57 | ||
58 | let serverNameParse = serverName(); | ||
59 | serverNameParse = | ||
60 | serverNameParse === 'Custom' ? 'your Custom Server' : serverNameParse; | ||
61 | |||
56 | return ( | 62 | return ( |
57 | <> | 63 | <> |
58 | {isWindows && !isFullScreen && ( | 64 | {isWindows && !isFullScreen && ( |
@@ -85,7 +91,7 @@ class AuthLayout extends Component { | |||
85 | onClick={retryHealthCheck} | 91 | onClick={retryHealthCheck} |
86 | > | 92 | > |
87 | <Icon icon={mdiFlash} /> | 93 | <Icon icon={mdiFlash} /> |
88 | {intl.formatMessage(globalMessages.APIUnhealthy)} | 94 | {intl.formatMessage(globalMessages.APIUnhealthy, { serverNameParse })} |
89 | </InfoBar> | 95 | </InfoBar> |
90 | )} | 96 | )} |
91 | <div className="auth__layout"> | 97 | <div className="auth__layout"> |