Added custom branding to login description (#3710)

This commit is contained in:
David Lu
2016-08-02 08:34:34 -04:00
committed by Joram Wilander
parent 42e74b509d
commit 2c23a4fe49
9 changed files with 91 additions and 14 deletions

View File

@@ -35,6 +35,18 @@ export default class CreateTeamController extends React.Component {
}
render() {
let description = null;
if (global.window.mm_license.IsLicensed === 'true' && global.window.mm_license.CustomBrand === 'true' && global.window.mm_config.EnableCustomBrand === 'true') {
description = global.window.mm_config.CustomDescriptionText;
} else {
description = (
<FormattedMessage
id='web.root.signup_info'
defaultMessage='All team communication in one place, searchable and accessible anywhere'
/>
);
}
return (
<div>
<ErrorBar/>
@@ -50,9 +62,7 @@ export default class CreateTeamController extends React.Component {
<div className='signup-team__container'>
<h1>{global.window.mm_config.SiteName}</h1>
<h4 className='color--light'>
<FormattedMessage
id='web.root.singup_info'
/>
{description}
</h4>
<div className='signup__content'>
{React.cloneElement(this.props.children, {