aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth/Login.js
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2022-06-16 02:41:14 +0100
committerLibravatar GitHub <noreply@github.com>2022-06-16 01:41:14 +0000
commit4fe7da167b3307b198c3a20bc4a13953c79d2f2f (patch)
tree43d7b54a35af1d4fd483879e45802e03bed24300 /src/components/auth/Login.js
parentFix default accent color to Ferdium gradient (#273) (diff)
downloadferdium-app-4fe7da167b3307b198c3a20bc4a13953c79d2f2f.tar.gz
ferdium-app-4fe7da167b3307b198c3a20bc4a13953c79d2f2f.tar.zst
ferdium-app-4fe7da167b3307b198c3a20bc4a13953c79d2f2f.zip
Remove Ferdi Server from available Servers List (#274)
Diffstat (limited to 'src/components/auth/Login.js')
-rw-r--r--src/components/auth/Login.js20
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';
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, LIVE_FERDI_API } from '../../config'; 7import { LIVE_FRANZ_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';
@@ -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 ? (