diff options
author | enahum <nahumhbl@gmail.com> | 2016-05-09 15:21:06 -0300 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-05-09 11:21:06 -0700 |
commit | 18e83ece086c656f2cd9c61522f542c36cc5e153 (patch) | |
tree | 035c6b794124eeed3211fd15e0e9358af9ac980f /webapp/components/tutorial/tutorial_intro_screens.jsx | |
parent | 07126101d379b900724c7c5cfc82070b42c235d6 (diff) | |
download | chat-18e83ece086c656f2cd9c61522f542c36cc5e153.tar.gz chat-18e83ece086c656f2cd9c61522f542c36cc5e153.tar.bz2 chat-18e83ece086c656f2cd9c61522f542c36cc5e153.zip |
PLT-2842 Fix "Invite teammates" link not working in tutorial screen. (#2936)
Diffstat (limited to 'webapp/components/tutorial/tutorial_intro_screens.jsx')
-rw-r--r-- | webapp/components/tutorial/tutorial_intro_screens.jsx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/webapp/components/tutorial/tutorial_intro_screens.jsx b/webapp/components/tutorial/tutorial_intro_screens.jsx index 294c18cf8..95c26edca 100644 --- a/webapp/components/tutorial/tutorial_intro_screens.jsx +++ b/webapp/components/tutorial/tutorial_intro_screens.jsx @@ -6,6 +6,7 @@ import TeamStore from 'stores/team_store.jsx'; import PreferenceStore from 'stores/preference_store.jsx'; import * as Utils from 'utils/utils.jsx'; import * as AsyncClient from 'utils/async_client.jsx'; +import * as GlobalActions from 'action_creators/global_actions.jsx'; import Constants from 'utils/constants.jsx'; @@ -106,13 +107,13 @@ export default class TutorialIntroScreens extends React.Component { createScreenThree() { const team = TeamStore.getCurrent(); let inviteModalLink; + if (team.type === Constants.INVITE_TEAM) { inviteModalLink = ( <a className='intro-links' href='#' - data-toggle='modal' - data-target='#invite_member' + onClick={GlobalActions.showInviteMemberModal} > <FormattedMessage id='tutorial_intro.invite' @@ -125,10 +126,7 @@ export default class TutorialIntroScreens extends React.Component { <a className='intro-links' href='#' - data-toggle='modal' - data-target='#get_link' - data-title='Team Invite' - data-value={Utils.getWindowLocationOrigin() + '/signup_user_complete/?id=' + team.id} + onClick={GlobalActions.showGetTeamInviteLinkModal} > <FormattedMessage id='tutorial_intro.teamInvite' |