From c56b429e1dee257bac69de1db55cafee01ccd005 Mon Sep 17 00:00:00 2001 From: David Lu Date: Mon, 25 Jul 2016 20:03:15 -0400 Subject: Removed Legal & Support settings from UI if empty (#3662) --- webapp/components/header_footer_template.jsx | 95 +++++++++++++++++----------- 1 file changed, 59 insertions(+), 36 deletions(-) (limited to 'webapp/components/header_footer_template.jsx') diff --git a/webapp/components/header_footer_template.jsx b/webapp/components/header_footer_template.jsx index 8267c73c5..1c9591dbf 100644 --- a/webapp/components/header_footer_template.jsx +++ b/webapp/components/header_footer_template.jsx @@ -16,6 +16,64 @@ export default class NotLoggedIn extends React.Component { $('#root').removeClass('container-fluid'); } render() { + let content = []; + + if (global.window.mm_config.HelpLink) { + content.push( + + + + ); + } + + if (global.window.mm_config.TermsOfServiceLink) { + content.push( + + + + ); + } + + if (global.window.mm_config.PrivacyPolicyLink) { + content.push( + + + + ); + } + + if (global.window.mm_config.AboutLink) { + content.push( + + + + ); + } + return (
@@ -29,42 +87,7 @@ export default class NotLoggedIn extends React.Component {
{'© 2015-2016 Mattermost, Inc.'} - - - - - - - - - - - - + {content}
-- cgit v1.2.3-1-g7c22