summaryrefslogtreecommitdiffstats
path: root/web/react/components/team_signup_with_sso.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-08 10:00:31 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-08 10:00:31 -0400
commit7a601afc64c20ce566efc59ed9f42f89fac3d26b (patch)
treee7858e8161014d860735c954a173b8d4850179f8 /web/react/components/team_signup_with_sso.jsx
parenta6629f95fe958d2a308e62b5f662f9eca7aea0b2 (diff)
parent81b7f649ed44875aaf08d7121ba12ee9e89e798f (diff)
downloadchat-7a601afc64c20ce566efc59ed9f42f89fac3d26b.tar.gz
chat-7a601afc64c20ce566efc59ed9f42f89fac3d26b.tar.bz2
chat-7a601afc64c20ce566efc59ed9f42f89fac3d26b.zip
Merge pull request #966 from mattermost/GIT-960
GIT-960 show error when you cannot create a team
Diffstat (limited to 'web/react/components/team_signup_with_sso.jsx')
-rw-r--r--web/react/components/team_signup_with_sso.jsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/react/components/team_signup_with_sso.jsx b/web/react/components/team_signup_with_sso.jsx
index 5267f44b6..bc7e13738 100644
--- a/web/react/components/team_signup_with_sso.jsx
+++ b/web/react/components/team_signup_with_sso.jsx
@@ -40,17 +40,17 @@ export default class SSOSignUpPage extends React.Component {
client.createTeamWithSSO(team,
this.props.service,
- function success(data) {
+ (data) => {
if (data.follow_link) {
window.location.href = data.follow_link;
} else {
window.location.href = '/' + team.name + '/channels/town-square';
}
},
- function fail(err) {
+ (err) => {
state.serverError = err.message;
this.setState(state);
- }.bind(this)
+ }
);
}
nameChange() {
@@ -85,7 +85,7 @@ export default class SSOSignUpPage extends React.Component {
disabled={disabled}
>
<span className='icon'/>
- <span>Create team with GitLab Account</span>
+ <span>{'Create team with GitLab Account'}</span>
</a>
);
}