PLT-2842 Fix "Invite teammates" link not working in tutorial screen. (#2936)

Этот коммит содержится в:
enahum
2016-05-09 15:21:06 -03:00
коммит произвёл Corey Hulen
родитель 07126101d3
Коммит 18e83ece08

Просмотреть файл

@@ -6,6 +6,7 @@ import TeamStore from 'stores/team_store.jsx';
import PreferenceStore from 'stores/preference_store.jsx'; import PreferenceStore from 'stores/preference_store.jsx';
import * as Utils from 'utils/utils.jsx'; import * as Utils from 'utils/utils.jsx';
import * as AsyncClient from 'utils/async_client.jsx'; import * as AsyncClient from 'utils/async_client.jsx';
import * as GlobalActions from 'action_creators/global_actions.jsx';
import Constants from 'utils/constants.jsx'; import Constants from 'utils/constants.jsx';
@@ -106,13 +107,13 @@ export default class TutorialIntroScreens extends React.Component {
createScreenThree() { createScreenThree() {
const team = TeamStore.getCurrent(); const team = TeamStore.getCurrent();
let inviteModalLink; let inviteModalLink;
if (team.type === Constants.INVITE_TEAM) { if (team.type === Constants.INVITE_TEAM) {
inviteModalLink = ( inviteModalLink = (
<a <a
className='intro-links' className='intro-links'
href='#' href='#'
data-toggle='modal' onClick={GlobalActions.showInviteMemberModal}
data-target='#invite_member'
> >
<FormattedMessage <FormattedMessage
id='tutorial_intro.invite' id='tutorial_intro.invite'
@@ -125,10 +126,7 @@ export default class TutorialIntroScreens extends React.Component {
<a <a
className='intro-links' className='intro-links'
href='#' href='#'
data-toggle='modal' onClick={GlobalActions.showGetTeamInviteLinkModal}
data-target='#get_link'
data-title='Team Invite'
data-value={Utils.getWindowLocationOrigin() + '/signup_user_complete/?id=' + team.id}
> >
<FormattedMessage <FormattedMessage
id='tutorial_intro.teamInvite' id='tutorial_intro.teamInvite'