aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/settings/AccountScreen.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-09-04 09:59:54 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-09-04 09:59:54 +0200
commit61f93280f55ed005c81f02f6b3d59702025f5dd5 (patch)
tree754b97c7a242154eae329832d5fde89293b1c1b1 /src/containers/settings/AccountScreen.js
parentLint (diff)
downloadferdium-app-61f93280f55ed005c81f02f6b3d59702025f5dd5.tar.gz
ferdium-app-61f93280f55ed005c81f02f6b3d59702025f5dd5.tar.zst
ferdium-app-61f93280f55ed005c81f02f6b3d59702025f5dd5.zip
Use custom account dashboard for custom servers
Diffstat (limited to 'src/containers/settings/AccountScreen.js')
-rw-r--r--src/containers/settings/AccountScreen.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js
index 66076504f..17c0613b7 100644
--- a/src/containers/settings/AccountScreen.js
+++ b/src/containers/settings/AccountScreen.js
@@ -26,7 +26,14 @@ export default @inject('stores', 'actions') @observer class AccountScreen extend
26 handleWebsiteLink(route) { 26 handleWebsiteLink(route) {
27 const { actions, stores } = this.props; 27 const { actions, stores } = this.props;
28 28
29 const url = `${WEBSITE}${route}?authToken=${stores.user.authToken}&utm_source=app&utm_medium=account_dashboard`; 29 const api = stores.settings.all.app.server;
30
31 let url;
32 if (api == 'https://api.franzinfra.com') {
33 url = `${WEBSITE}${route}?authToken=${stores.user.authToken}&utm_source=app&utm_medium=account_dashboard`;
34 } else {
35 url = `${api}${route}`;
36 }
30 37
31 actions.app.openExternalUrl({ url }); 38 actions.app.openExternalUrl({ url });
32 } 39 }