summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-12 14:28:46 -0500
committerChristopher Speller <crspeller@gmail.com>2016-03-12 14:28:46 -0500
commit72ed22d7421f50bc686e5adaea2f4a416fcbad27 (patch)
tree32359b9c26b1e827e734536208f7d9f4547f2415 /web
parentf06db338a37896bb989e05a04b28f65abc1cd6aa (diff)
parente4fed928d9365ba3e096a02e590cd741de4d2cb2 (diff)
downloadchat-72ed22d7421f50bc686e5adaea2f4a416fcbad27.tar.gz
chat-72ed22d7421f50bc686e5adaea2f4a416fcbad27.tar.bz2
chat-72ed22d7421f50bc686e5adaea2f4a416fcbad27.zip
Merge pull request #2412 from asaadmahmoodspin/ui-improvements
Adding separators between ldap, username, email, github
Diffstat (limited to 'web')
-rw-r--r--web/react/components/login.jsx34
-rw-r--r--web/react/utils/constants.jsx6
-rw-r--r--web/static/images/themes/code_themes/solarized-dark.png (renamed from web/static/images/themes/code_themes/solarized_dark.png)bin81942 -> 81942 bytes
-rw-r--r--web/static/images/themes/code_themes/solarized-light.png (renamed from web/static/images/themes/code_themes/solarized_light.png)bin82868 -> 82868 bytes
4 files changed, 37 insertions, 3 deletions
diff --git a/web/react/components/login.jsx b/web/react/components/login.jsx
index 581b8e0b5..1c393c679 100644
--- a/web/react/components/login.jsx
+++ b/web/react/components/login.jsx
@@ -19,6 +19,8 @@ export default class Login extends React.Component {
render() {
const teamDisplayName = this.props.teamDisplayName;
const teamName = this.props.teamName;
+ const ldapEnabled = global.window.mm_config.EnableLdap === 'true';
+ const usernameSigninEnabled = global.window.mm_config.EnableSignInWithUsername === 'true';
let loginMessage = [];
if (global.window.mm_config.EnableSignUpWithGitLab === 'true') {
@@ -173,6 +175,22 @@ export default class Login extends React.Component {
);
}
+ if (ldapEnabled && (loginMessage.length > 0 || emailSignup || usernameSigninEnabled)) {
+ ldapLogin = (
+ <div>
+ <div className='or__container'>
+ <FormattedMessage
+ id='login.or'
+ defaultMessage='or'
+ />
+ </div>
+ <LoginLdap
+ teamName={this.props.teamName}
+ />
+ </div>
+ );
+ }
+
let findTeams = null;
if (!Utils.isMobileApp()) {
findTeams = (
@@ -197,6 +215,22 @@ export default class Login extends React.Component {
);
}
+ if (usernameSigninEnabled && (loginMessage.length > 0 || emailSignup || ldapEnabled)) {
+ usernameLogin = (
+ <div>
+ <div className='or__container'>
+ <FormattedMessage
+ id='login.or'
+ defaultMessage='or'
+ />
+ </div>
+ <LoginUsername
+ teamName={this.props.teamName}
+ />
+ </div>
+ );
+ }
+
return (
<div className='signup-team__container'>
<h5 className='margin--less'>
diff --git a/web/react/utils/constants.jsx b/web/react/utils/constants.jsx
index 4b1f73b79..3147bbd6a 100644
--- a/web/react/utils/constants.jsx
+++ b/web/react/utils/constants.jsx
@@ -267,7 +267,7 @@ export default {
buttonColor: '#FFFFFF',
mentionHighlightBg: '#984063',
mentionHighlightLink: '#A4FFEB',
- codeTheme: 'solarized_dark'
+ codeTheme: 'solarized-dark'
},
windows10: {
type: 'Windows Dark',
@@ -386,11 +386,11 @@ export default {
uiName: 'Code Theme',
themes: [
{
- id: 'solarized_dark',
+ id: 'solarized-dark',
uiName: 'Solarized Dark'
},
{
- id: 'solarized_light',
+ id: 'solarized-light',
uiName: 'Solarized Light'
},
{
diff --git a/web/static/images/themes/code_themes/solarized_dark.png b/web/static/images/themes/code_themes/solarized-dark.png
index 582df48f9..582df48f9 100644
--- a/web/static/images/themes/code_themes/solarized_dark.png
+++ b/web/static/images/themes/code_themes/solarized-dark.png
Binary files differ
diff --git a/web/static/images/themes/code_themes/solarized_light.png b/web/static/images/themes/code_themes/solarized-light.png
index d2c2702fb..d2c2702fb 100644
--- a/web/static/images/themes/code_themes/solarized_light.png
+++ b/web/static/images/themes/code_themes/solarized-light.png
Binary files differ