summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-05-04 09:32:20 -0400
committerChristopher Speller <crspeller@gmail.com>2016-05-04 09:32:20 -0400
commitd5b59707e653abf0d449a2fdc9d98e1e310cddf3 (patch)
treeab6cd99f72e2683bc9b31c1f38376a25b7a00d56
parent6611229cd7bd3cdfc0082c0a581145aaac0ab322 (diff)
downloadchat-d5b59707e653abf0d449a2fdc9d98e1e310cddf3.tar.gz
chat-d5b59707e653abf0d449a2fdc9d98e1e310cddf3.tar.bz2
chat-d5b59707e653abf0d449a2fdc9d98e1e310cddf3.zip
PLT-2766 Fix custom branding image on login page and remove from select team page (#2876)
* Remove custom branding image from select team screen and update component name to be correct * Fixing branding stuff on login (#2873)
-rw-r--r--webapp/components/login/login.jsx12
-rw-r--r--webapp/components/select_team/select_team.jsx37
2 files changed, 8 insertions, 41 deletions
diff --git a/webapp/components/login/login.jsx b/webapp/components/login/login.jsx
index b093b3ec9..ce200ad75 100644
--- a/webapp/components/login/login.jsx
+++ b/webapp/components/login/login.jsx
@@ -422,13 +422,13 @@ export default class Login extends React.Component {
className='signup-team-logo'
src={logoImage}
/>
- <h1>{global.window.mm_config.SiteName}</h1>
- <h4 className='color--light'>
- <FormattedMessage
- id='web.root.singup_info'
- />
- </h4>
<div className='signup__content'>
+ <h1>{global.window.mm_config.SiteName}</h1>
+ <h4 className='color--light'>
+ <FormattedMessage
+ id='web.root.singup_info'
+ />
+ </h4>
{content}
</div>
</div>
diff --git a/webapp/components/select_team/select_team.jsx b/webapp/components/select_team/select_team.jsx
index 5804a641e..45a708d8c 100644
--- a/webapp/components/select_team/select_team.jsx
+++ b/webapp/components/select_team/select_team.jsx
@@ -6,22 +6,17 @@ import TeamStore from 'stores/team_store.jsx';
import * as Utils from 'utils/utils.jsx';
import ErrorBar from 'components/error_bar.jsx';
import LoadingScreen from 'components/loading_screen.jsx';
-import Client from 'utils/web_client.jsx';
import * as AsyncClient from 'utils/async_client.jsx';
import * as GlobalActions from 'action_creators/global_actions.jsx';
-import * as TextFormatting from 'utils/text_formatting.jsx';
-
import {Link} from 'react-router';
import {FormattedMessage} from 'react-intl';
-//import {browserHistory, Link} from 'react-router';
-
import React from 'react';
import logoImage from 'images/logo.png';
-export default class Login extends React.Component {
+export default class SelectTeam extends React.Component {
constructor(props) {
super(props);
@@ -53,34 +48,9 @@ export default class Login extends React.Component {
};
}
- createCustomLogin() {
- if (global.window.mm_license.IsLicensed === 'true' &&
- global.window.mm_license.CustomBrand === 'true' &&
- global.window.mm_config.EnableCustomBrand === 'true') {
- const text = global.window.mm_config.CustomBrandText || '';
-
- return (
- <div>
- <img
- src={Client.getAdminRoute() + '/get_brand_image'}
- />
- <p dangerouslySetInnerHTML={{__html: TextFormatting.formatText(text)}}/>
- </div>
- );
- }
-
- return null;
- }
-
render() {
var content;
- let customClass;
- const customContent = this.createCustomLogin();
- if (customContent) {
- customClass = 'branded';
- }
-
var teamContents = [];
var isAlreadyMember = new Map();
@@ -231,10 +201,7 @@ export default class Login extends React.Component {
</a>
</div>
<div className='col-sm-12'>
- <div className={'signup-team__container ' + customClass}>
- <div className='signup__markdown'>
- {customContent}
- </div>
+ <div className={'signup-team__container'}>
<img
className='signup-team-logo'
src={logoImage}