From e22bab5be03337e39c14bffc911dac1bd7385ed4 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Thu, 11 May 2017 16:18:48 -0400 Subject: [PATCH] PLT-6566 Prevented terms of service link from being blank (#6392) --- model/config.go | 2 +- webapp/components/header_footer_template.jsx | 26 +++++++++----------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/model/config.go b/model/config.go index b233d8b55b..aedba70133 100644 --- a/model/config.go +++ b/model/config.go @@ -714,7 +714,7 @@ func (o *Config) SetDefaults() { } if !IsSafeLink(o.SupportSettings.TermsOfServiceLink) { - *o.SupportSettings.TermsOfServiceLink = "" + *o.SupportSettings.TermsOfServiceLink = SUPPORT_SETTINGS_DEFAULT_TERMS_OF_SERVICE_LINK } if o.SupportSettings.TermsOfServiceLink == nil { diff --git a/webapp/components/header_footer_template.jsx b/webapp/components/header_footer_template.jsx index c41d7ee41d..6fb9c9046a 100644 --- a/webapp/components/header_footer_template.jsx +++ b/webapp/components/header_footer_template.jsx @@ -33,20 +33,18 @@ export default class NotLoggedIn extends React.Component { ); } - if (global.window.mm_config.TermsOfServiceLink) { - content.push( - - - - ); - } + content.push( + + + + ); if (global.window.mm_config.PrivacyPolicyLink) { content.push(