diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-11-19 11:59:59 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-11-23 10:53:07 -0500 |
commit | b20144db8ec18630cf21cdc4e47c5681f2a67aa0 (patch) | |
tree | 09e580e085cefe5546a6f38d89840faaec327867 /web/react/components/invite_member_modal.jsx | |
parent | e8f6dd2f3359feceeae9923366c5ec80a6ab1d73 (diff) | |
download | chat-b20144db8ec18630cf21cdc4e47c5681f2a67aa0.tar.gz chat-b20144db8ec18630cf21cdc4e47c5681f2a67aa0.tar.bz2 chat-b20144db8ec18630cf21cdc4e47c5681f2a67aa0.zip |
Converted GetLinkModal to React-Bootstrap and added GetTeamInviteLinkModal
Diffstat (limited to 'web/react/components/invite_member_modal.jsx')
-rw-r--r-- | web/react/components/invite_member_modal.jsx | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/web/react/components/invite_member_modal.jsx b/web/react/components/invite_member_modal.jsx index 7df75252e..59e3a2697 100644 --- a/web/react/components/invite_member_modal.jsx +++ b/web/react/components/invite_member_modal.jsx @@ -10,6 +10,7 @@ import ModalStore from '../stores/modal_store.jsx'; import UserStore from '../stores/user_store.jsx'; import TeamStore from '../stores/team_store.jsx'; import ConfirmModal from './confirm_modal.jsx'; +import GetTeamInviteLinkModal from './get_team_invite_link_modal.jsx'; const Modal = ReactBootstrap.Modal; @@ -23,6 +24,7 @@ export default class InviteMemberModal extends React.Component { this.addInviteFields = this.addInviteFields.bind(this); this.clearFields = this.clearFields.bind(this); this.removeInviteFields = this.removeInviteFields.bind(this); + this.showGetTeamInviteLinkModal = this.showGetTeamInviteLinkModal.bind(this); this.state = { show: false, @@ -188,6 +190,12 @@ export default class InviteMemberModal extends React.Component { this.setState({inviteIds: inviteIds, idCount: count}); } + showGetTeamInviteLinkModal() { + this.handleHide(false); + + GetTeamInviteLinkModal.show(); + } + render() { var currentUser = UserStore.getCurrentUser(); @@ -333,22 +341,18 @@ export default class InviteMemberModal extends React.Component { } else { var teamInviteLink = null; if (currentUser && TeamStore.getCurrent().type === 'O') { - var linkUrl = utils.getWindowLocationOrigin() + '/signup_user_complete/?id=' + TeamStore.getCurrent().invite_id; - var link = - ( - <a - href='#' - data-toggle='modal' - data-target='#get_link' - data-title='Team Invite' - data-value={linkUrl} - onClick={() => this.handleHide(this, false)} - >Team Invite Link</a> + var link = ( + <a + href='#' + onClick={this.showGetTeamInviteLinkModal} + > + {'Team Invite Link'} + </a> ); teamInviteLink = ( <p> - You can also invite people using the {link}. + {'You can also invite people using the '}{link}{'.'} </p> ); } |