summaryrefslogtreecommitdiffstats
path: root/web/react/components/login.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-01-27 09:22:27 -0500
committerChristopher Speller <crspeller@gmail.com>2016-01-27 09:22:27 -0500
commitf0e6e7de93715f61ef3055efe29ecc35bfefb35d (patch)
treebe81061f6169401a0cae6507d4164da969f4e605 /web/react/components/login.jsx
parente5ed90821e6bb25c27e5627cf289df41cbcb1793 (diff)
parent6fd0f651b94e594dddb00800bf295af7ff42934e (diff)
downloadchat-f0e6e7de93715f61ef3055efe29ecc35bfefb35d.tar.gz
chat-f0e6e7de93715f61ef3055efe29ecc35bfefb35d.tar.bz2
chat-f0e6e7de93715f61ef3055efe29ecc35bfefb35d.zip
Merge pull request #1993 from mattermost/PLT-1586
PLT-1586 adding LDAP/OAuth to iOS
Diffstat (limited to 'web/react/components/login.jsx')
-rw-r--r--web/react/components/login.jsx27
1 files changed, 17 insertions, 10 deletions
diff --git a/web/react/components/login.jsx b/web/react/components/login.jsx
index 6887489a7..3c1d66334 100644
--- a/web/react/components/login.jsx
+++ b/web/react/components/login.jsx
@@ -115,7 +115,7 @@ export default class Login extends React.Component {
}
let teamSignUp = null;
- if (global.window.mm_config.EnableTeamCreation === 'true') {
+ if (global.window.mm_config.EnableTeamCreation === 'true' && !Utils.isMobileApp()) {
teamSignUp = (
<div className='margin--extra'>
<a
@@ -137,6 +137,21 @@ export default class Login extends React.Component {
);
}
+ let findTeams = null;
+ if (!Utils.isMobileApp()) {
+ findTeams = (
+ <div className='form-group margin--extra form-group--small'>
+ <span>
+ <a href='/find_team'>
+ <FormattedMessage
+ id='login.find_teams'
+ defaultMessage='Find your other teams'
+ />
+ </a></span>
+ </div>
+ );
+ }
+
return (
<div className='signup-team__container'>
<h5 className='margin--less'>{'Sign in to:'}</h5>
@@ -147,15 +162,7 @@ export default class Login extends React.Component {
{emailSignup}
{ldapLogin}
{userSignUp}
- <div className='form-group margin--extra form-group--small'>
- <span>
- <a href='/find_team'>
- <FormattedMessage
- id='login.find_teams'
- defaultMessage='Find your other teams'
- />
- </a></span>
- </div>
+ {findTeams}
{forgotPassword}
{teamSignUp}
</div>