From 61f93280f55ed005c81f02f6b3d59702025f5dd5 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Wed, 4 Sep 2019 09:59:54 +0200 Subject: Use custom account dashboard for custom servers --- src/containers/settings/AccountScreen.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/containers/settings/AccountScreen.js') 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 handleWebsiteLink(route) { const { actions, stores } = this.props; - const url = `${WEBSITE}${route}?authToken=${stores.user.authToken}&utm_source=app&utm_medium=account_dashboard`; + const api = stores.settings.all.app.server; + + let url; + if (api == 'https://api.franzinfra.com') { + url = `${WEBSITE}${route}?authToken=${stores.user.authToken}&utm_source=app&utm_medium=account_dashboard`; + } else { + url = `${api}${route}`; + } actions.app.openExternalUrl({ url }); } -- cgit v1.2.3-54-g00ecf