diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-03-24 11:05:13 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-03-24 11:05:13 -0400 |
commit | b62e29ba9cd6183551266da05b9b602a4415d738 (patch) | |
tree | ea759d6d46cc49386bcd66a8b9b8542f75b1c77e /webapp/components/team_signup_with_ldap.jsx | |
parent | 68dad8c7345b12c7d0b10709ddc1873d4b40163e (diff) | |
download | chat-b62e29ba9cd6183551266da05b9b602a4415d738.tar.gz chat-b62e29ba9cd6183551266da05b9b602a4415d738.tar.bz2 chat-b62e29ba9cd6183551266da05b9b602a4415d738.zip |
Moving all links and redirects to react-router
Diffstat (limited to 'webapp/components/team_signup_with_ldap.jsx')
-rw-r--r-- | webapp/components/team_signup_with_ldap.jsx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/webapp/components/team_signup_with_ldap.jsx b/webapp/components/team_signup_with_ldap.jsx index e36d4a42b..9d812e8ee 100644 --- a/webapp/components/team_signup_with_ldap.jsx +++ b/webapp/components/team_signup_with_ldap.jsx @@ -7,6 +7,7 @@ import * as utils from 'utils/utils.jsx'; import * as Client from 'utils/client.jsx'; import {injectIntl, intlShape, defineMessages, FormattedMessage} from 'react-intl'; +import {browserHistory} from 'react-router'; const holders = defineMessages({ team_error: { @@ -112,7 +113,7 @@ class LdapSignUpPage extends React.Component { Client.loginByLdap(teamSignup.team.name, id, password, () => { - window.location.href = '/' + teamSignup.team.name + '/channels/town-square'; + browserHistory.push('/' + teamSignup.team.name + '/channels/town-square'); }, (err) => { $('#ldap-button').button('reset'); @@ -218,14 +219,6 @@ class LdapSignUpPage extends React.Component { </a> {serverError} </div> - <div className='form-group margin--extra-2x'> - <span><a href='/find_team'> - <FormattedMessage - id='ldap_signup.find' - defaultMessage='Find my teams' - /> - </a></span> - </div> </form> ); } @@ -235,4 +228,4 @@ LdapSignUpPage.propTypes = { intl: intlShape.isRequired }; -export default injectIntl(LdapSignUpPage);
\ No newline at end of file +export default injectIntl(LdapSignUpPage); |