From f00f32f91e69566dc38a1e3db892bb14c6c0dc5a Mon Sep 17 00:00:00 2001 From: vantezzen Date: Wed, 25 Mar 2020 17:13:47 +0100 Subject: Improve information about premium As seen in #496, the current way Ferdi displays information about the Premium status may be irritating to new users. This commit will: - Hide all premium sections if we are not using the Franz server - Hide teams section if we are not using the Franz server - Update the description on the Teams page to reflect the use of Teams in Ferdi - Fix accessing the Team Management page to go to meetfranz.com instead of getferdi.com --- .../settings/navigation/SettingsNavigation.js | 25 ++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'src/components/settings/navigation/SettingsNavigation.js') diff --git a/src/components/settings/navigation/SettingsNavigation.js b/src/components/settings/navigation/SettingsNavigation.js index eb3249fa0..6b03f05be 100644 --- a/src/components/settings/navigation/SettingsNavigation.js +++ b/src/components/settings/navigation/SettingsNavigation.js @@ -105,6 +105,7 @@ export default @inject('stores', 'actions') @observer class SettingsNavigation e const { intl } = this.context; const isLoggedIn = Boolean(localStorage.getItem('authToken')); const isUsingWithoutAccount = stores.settings.app.server === LOCAL_SERVER; + const isUsingFranzServer = stores.settings.app.server === 'https://api.franzinfra.com'; return (
@@ -154,17 +155,19 @@ export default @inject('stores', 'actions') @observer class SettingsNavigation e > {intl.formatMessage(messages.account)} - - {intl.formatMessage(messages.team)} - {!user.data.isPremium && ( - - )} - + {isUsingFranzServer && ( + + {intl.formatMessage(messages.team)} + {!user.data.isPremium && ( + + )} + + )}