diff options
Diffstat (limited to 'src/components/auth/Login.js')
-rw-r--r-- | src/components/auth/Login.js | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/components/auth/Login.js b/src/components/auth/Login.js index c6b26a21d..74b9fef47 100644 --- a/src/components/auth/Login.js +++ b/src/components/auth/Login.js | |||
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types'; | |||
4 | import { observer, inject } from 'mobx-react'; | 4 | import { observer, inject } from 'mobx-react'; |
5 | import { defineMessages, injectIntl } from 'react-intl'; | 5 | import { defineMessages, injectIntl } from 'react-intl'; |
6 | 6 | ||
7 | import { LIVE_FRANZ_API, LIVE_FERDI_API } from '../../config'; | 7 | import { LIVE_FRANZ_API } from '../../config'; |
8 | import { API_VERSION } from '../../environment-remote'; | 8 | import { API_VERSION } from '../../environment-remote'; |
9 | import Form from '../../lib/Form'; | 9 | import Form from '../../lib/Form'; |
10 | import { required, email } from '../../helpers/validation-helpers'; | 10 | import { required, email } from '../../helpers/validation-helpers'; |
@@ -155,24 +155,6 @@ class Login extends Component { | |||
155 | </Link> | 155 | </Link> |
156 | </p> | 156 | </p> |
157 | )} | 157 | )} |
158 | {window['ferdium'].stores.settings.all.app.server !== | ||
159 | LIVE_FERDI_API && ( | ||
160 | <p className="error-message center"> | ||
161 | {intl.formatMessage(messages.customServerQuestion)}{' '} | ||
162 | <Link | ||
163 | to={`${window[ | ||
164 | 'ferdium' | ||
165 | ].stores.settings.all.app.server.replace( | ||
166 | API_VERSION, | ||
167 | '', | ||
168 | )}/import`} | ||
169 | target="_blank" | ||
170 | style={{ cursor: 'pointer', textDecoration: 'underline' }} | ||
171 | > | ||
172 | {intl.formatMessage(messages.customServerSuggestion)} | ||
173 | </Link> | ||
174 | </p> | ||
175 | )} | ||
176 | </> | 158 | </> |
177 | )} | 159 | )} |
178 | {isSubmitting ? ( | 160 | {isSubmitting ? ( |