diff --git a/src/client/components/main_layout/TopBar.js b/src/client/components/main_layout/TopBar.js index 56379eaea7a28fc9de014bae480deefdb825b16b..bf72cc0b80ff68c87281b6e4bb7c47d704612f7c 100644 --- a/src/client/components/main_layout/TopBar.js +++ b/src/client/components/main_layout/TopBar.js @@ -18,6 +18,7 @@ import Divider from '@material-ui/core/Divider' import { has } from 'lodash' // import mmmLogo from '../../img/mmm-logo-52x50.png' import secoLogo from '../../img/seco-logo-48x50.png' +import { showLanguageButton } from '../../configs/sampo/GeneralConfig' const styles = theme => ({ root: { @@ -236,12 +237,12 @@ class TopBar extends React.Component { > {intl.get('topBar.instructions')} </Button> - - <TopBarLanguageButton - currentLocale={currentLocale} - availableLocales={availableLocales} - loadLocales={this.props.loadLocales} - /> + {showLanguageButton && + <TopBarLanguageButton + currentLocale={currentLocale} + availableLocales={availableLocales} + loadLocales={this.props.loadLocales} + />} </div> <a className={classes.secoLogo} diff --git a/src/client/configs/sampo/GeneralConfig.js b/src/client/configs/sampo/GeneralConfig.js index 891026616cbe82acd9ad614a597e6787849566e2..bd8354a52112ee4c91312cb77971cfdd5d1af33c 100644 --- a/src/client/configs/sampo/GeneralConfig.js +++ b/src/client/configs/sampo/GeneralConfig.js @@ -2,8 +2,10 @@ export const rootUrl = '' export const defaultLocale = 'en' +export const showLanguageButton = true + export const publishedPort = 3006 export const MAPBOX_ACCESS_TOKEN = 'pk.eyJ1IjoiZWtrb25lbiIsImEiOiJjam5vampzZ28xd2dyM3BzNXR0Zzg4azl4In0.eozyF-bBaZbA3ibhvJlJpQ' -export const documentFinderAPIUrl = 'https://data.finlex.fi/document-finder-backend' \ No newline at end of file +export const documentFinderAPIUrl = 'https://data.finlex.fi/document-finder-backend'