From c7c774c6318fcc8a13cb7f31e2672eea4ebfc777 Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Wed, 27 Apr 2022 15:07:24 +0100 Subject: Add Ferdi server to hosted services (#49) * 'SettingsNavigation.js' and 'TeamDashboard.js' also have a call to 'LIVE_FERDI_API', but it handles the teams feature that I think neither Ferdi or Ferdium provide. * Removes comment on 'apiBase.ts' because I tested and the Terms was redirecting fine on the 'Help' Menu. --- src/components/auth/Login.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/components/auth/Login.js') 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'; import { observer, inject } from 'mobx-react'; import { defineMessages, injectIntl } from 'react-intl'; -import { LIVE_FRANZ_API } from '../../config'; +import { LIVE_FRANZ_API, LIVE_FERDI_API } from '../../config'; import { API_VERSION } from '../../environment-remote'; import Form from '../../lib/Form'; import { required, email } from '../../helpers/validation-helpers'; @@ -153,6 +153,24 @@ class Login extends Component {

)} + {window['ferdium'].stores.settings.all.app.server !== + LIVE_FERDI_API && ( +

+ {intl.formatMessage(messages.customServerQuestion)}{' '} + + {intl.formatMessage(messages.customServerSuggestion)} + +

+ )} )} {isSubmitting ? ( -- cgit v1.2.3-54-g00ecf