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. --- .../settings/account/AccountDashboard.js | 26 +++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'src/components/settings/account/AccountDashboard.js') diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js index b500b82cf..78d41a273 100644 --- a/src/components/settings/account/AccountDashboard.js +++ b/src/components/settings/account/AccountDashboard.js @@ -8,7 +8,7 @@ import { H1, H2 } from '../../ui/headline'; import Loader from '../../ui/Loader'; import Button from '../../ui/Button'; import Infobox from '../../ui/Infobox'; -import { LOCAL_SERVER, LIVE_FRANZ_API } from '../../../config'; +import { LOCAL_SERVER, LIVE_FRANZ_API, LIVE_FERDI_API } from '../../../config'; const messages = defineMessages({ headline: { @@ -95,6 +95,7 @@ class AccountDashboard extends Component { const isUsingWithoutAccount = server === LOCAL_SERVER; const isUsingFranzServer = server === LIVE_FRANZ_API; + const isUsingFerdiServer = server === LIVE_FERDI_API; return (
@@ -210,6 +211,29 @@ class AccountDashboard extends Component {
)} + {isUsingFerdiServer && ( +
+
+

+ {intl.formatMessage(messages.headlineDangerZone)} +

+ {!isDeleteAccountSuccessful && ( +
+

{intl.formatMessage(messages.deleteInfo)}

+
+ )} + {isDeleteAccountSuccessful && ( +

{intl.formatMessage(messages.deleteEmailSent)}

+ )} +
+
+ )} )} -- cgit v1.2.3-70-g09d2