From d5b59707e653abf0d449a2fdc9d98e1e310cddf3 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 4 May 2016 09:32:20 -0400 Subject: 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) --- webapp/components/select_team/select_team.jsx | 37 ++------------------------- 1 file changed, 2 insertions(+), 35 deletions(-) (limited to 'webapp/components/select_team') 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 ( -
- -

-

- ); - } - - 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 {
-
-
- {customContent} -
+