PLT-6566 Prevented terms of service link from being blank (#6392)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
c789eeceb1
Коммит
e22bab5be0
@@ -714,7 +714,7 @@ func (o *Config) SetDefaults() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !IsSafeLink(o.SupportSettings.TermsOfServiceLink) {
|
if !IsSafeLink(o.SupportSettings.TermsOfServiceLink) {
|
||||||
*o.SupportSettings.TermsOfServiceLink = ""
|
*o.SupportSettings.TermsOfServiceLink = SUPPORT_SETTINGS_DEFAULT_TERMS_OF_SERVICE_LINK
|
||||||
}
|
}
|
||||||
|
|
||||||
if o.SupportSettings.TermsOfServiceLink == nil {
|
if o.SupportSettings.TermsOfServiceLink == nil {
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ export default class NotLoggedIn extends React.Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (global.window.mm_config.TermsOfServiceLink) {
|
|
||||||
content.push(
|
content.push(
|
||||||
<a
|
<a
|
||||||
key='terms_link'
|
key='terms_link'
|
||||||
@@ -46,7 +45,6 @@ export default class NotLoggedIn extends React.Component {
|
|||||||
<FormattedMessage id='web.footer.terms'/>
|
<FormattedMessage id='web.footer.terms'/>
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if (global.window.mm_config.PrivacyPolicyLink) {
|
if (global.window.mm_config.PrivacyPolicyLink) {
|
||||||
content.push(
|
content.push(
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user