aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/settings/account/AccountDashboard.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/settings/account/AccountDashboard.js')
-rw-r--r--src/components/settings/account/AccountDashboard.js26
1 files changed, 25 insertions, 1 deletions
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';
8import Loader from '../../ui/Loader'; 8import Loader from '../../ui/Loader';
9import Button from '../../ui/Button'; 9import Button from '../../ui/Button';
10import Infobox from '../../ui/Infobox'; 10import Infobox from '../../ui/Infobox';
11import { LOCAL_SERVER, LIVE_FRANZ_API } from '../../../config'; 11import { LOCAL_SERVER, LIVE_FRANZ_API, LIVE_FERDI_API } from '../../../config';
12 12
13const messages = defineMessages({ 13const messages = defineMessages({
14 headline: { 14 headline: {
@@ -95,6 +95,7 @@ class AccountDashboard extends Component {
95 95
96 const isUsingWithoutAccount = server === LOCAL_SERVER; 96 const isUsingWithoutAccount = server === LOCAL_SERVER;
97 const isUsingFranzServer = server === LIVE_FRANZ_API; 97 const isUsingFranzServer = server === LIVE_FRANZ_API;
98 const isUsingFerdiServer = server === LIVE_FERDI_API;
98 99
99 return ( 100 return (
100 <div className="settings__main"> 101 <div className="settings__main">
@@ -210,6 +211,29 @@ class AccountDashboard extends Component {
210 </div> 211 </div>
211 </div> 212 </div>
212 )} 213 )}
214 {isUsingFerdiServer && (
215 <div className="account franz-form">
216 <div className="account__box">
217 <H2>
218 {intl.formatMessage(messages.headlineDangerZone)}
219 </H2>
220 {!isDeleteAccountSuccessful && (
221 <div className="account__subscription">
222 <p>{intl.formatMessage(messages.deleteInfo)}</p>
223 <Button
224 label={intl.formatMessage(messages.deleteAccount)}
225 buttonType="danger"
226 onClick={() => deleteAccount()}
227 loaded={!isLoadingDeleteAccount}
228 />
229 </div>
230 )}
231 {isDeleteAccountSuccessful && (
232 <p>{intl.formatMessage(messages.deleteEmailSent)}</p>
233 )}
234 </div>
235 </div>
236 )}
213 </> 237 </>
214 )} 238 )}
215 </> 239 </>