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)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
6611229cd7
Коммит
d5b59707e6
@@ -422,13 +422,13 @@ export default class Login extends React.Component {
|
|||||||
className='signup-team-logo'
|
className='signup-team-logo'
|
||||||
src={logoImage}
|
src={logoImage}
|
||||||
/>
|
/>
|
||||||
<h1>{global.window.mm_config.SiteName}</h1>
|
|
||||||
<h4 className='color--light'>
|
|
||||||
<FormattedMessage
|
|
||||||
id='web.root.singup_info'
|
|
||||||
/>
|
|
||||||
</h4>
|
|
||||||
<div className='signup__content'>
|
<div className='signup__content'>
|
||||||
|
<h1>{global.window.mm_config.SiteName}</h1>
|
||||||
|
<h4 className='color--light'>
|
||||||
|
<FormattedMessage
|
||||||
|
id='web.root.singup_info'
|
||||||
|
/>
|
||||||
|
</h4>
|
||||||
{content}
|
{content}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,22 +6,17 @@ import TeamStore from 'stores/team_store.jsx';
|
|||||||
import * as Utils from 'utils/utils.jsx';
|
import * as Utils from 'utils/utils.jsx';
|
||||||
import ErrorBar from 'components/error_bar.jsx';
|
import ErrorBar from 'components/error_bar.jsx';
|
||||||
import LoadingScreen from 'components/loading_screen.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 AsyncClient from 'utils/async_client.jsx';
|
||||||
import * as GlobalActions from 'action_creators/global_actions.jsx';
|
import * as GlobalActions from 'action_creators/global_actions.jsx';
|
||||||
|
|
||||||
import * as TextFormatting from 'utils/text_formatting.jsx';
|
|
||||||
|
|
||||||
import {Link} from 'react-router';
|
import {Link} from 'react-router';
|
||||||
|
|
||||||
import {FormattedMessage} from 'react-intl';
|
import {FormattedMessage} from 'react-intl';
|
||||||
|
|
||||||
//import {browserHistory, Link} from 'react-router';
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import logoImage from 'images/logo.png';
|
import logoImage from 'images/logo.png';
|
||||||
|
|
||||||
export default class Login extends React.Component {
|
export default class SelectTeam extends React.Component {
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(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() {
|
render() {
|
||||||
var content;
|
var content;
|
||||||
|
|
||||||
let customClass;
|
|
||||||
const customContent = this.createCustomLogin();
|
|
||||||
if (customContent) {
|
|
||||||
customClass = 'branded';
|
|
||||||
}
|
|
||||||
|
|
||||||
var teamContents = [];
|
var teamContents = [];
|
||||||
var isAlreadyMember = new Map();
|
var isAlreadyMember = new Map();
|
||||||
|
|
||||||
@@ -231,10 +201,7 @@ export default class Login extends React.Component {
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div className='col-sm-12'>
|
<div className='col-sm-12'>
|
||||||
<div className={'signup-team__container ' + customClass}>
|
<div className={'signup-team__container'}>
|
||||||
<div className='signup__markdown'>
|
|
||||||
{customContent}
|
|
||||||
</div>
|
|
||||||
<img
|
<img
|
||||||
className='signup-team-logo'
|
className='signup-team-logo'
|
||||||
src={logoImage}
|
src={logoImage}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user