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