From 784d85f46d1dee7ab74f7e12243815712a1d6099 Mon Sep 17 00:00:00 2001
From: Saturnino Abril <saturnino.abril@gmail.com>
Date: Mon, 23 Jan 2017 18:07:34 +0900
Subject: Move instances of Client.inviteMembers() in components to an action
 (#5154)

---
 webapp/components/invite_member_modal.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'webapp/components/invite_member_modal.jsx')

diff --git a/webapp/components/invite_member_modal.jsx b/webapp/components/invite_member_modal.jsx
index f4fd1d712..563c1aba9 100644
--- a/webapp/components/invite_member_modal.jsx
+++ b/webapp/components/invite_member_modal.jsx
@@ -5,13 +5,13 @@ import ReactDOM from 'react-dom';
 import * as utils from 'utils/utils.jsx';
 import Constants from 'utils/constants.jsx';
 const ActionTypes = Constants.ActionTypes;
-import Client from 'client/web_client.jsx';
 import * as GlobalActions from 'actions/global_actions.jsx';
 import ModalStore from 'stores/modal_store.jsx';
 import UserStore from 'stores/user_store.jsx';
 import ChannelStore from 'stores/channel_store.jsx';
 import TeamStore from 'stores/team_store.jsx';
 import ConfirmModal from './confirm_modal.jsx';
+import {inviteMembers} from 'actions/team_actions.jsx';
 
 import {intlShape, injectIntl, defineMessages, FormattedMessage, FormattedHTMLMessage} from 'react-intl';
 
@@ -142,7 +142,7 @@ class InviteMemberModal extends React.Component {
 
         this.setState({isSendingEmails: true});
 
-        Client.inviteMembers(
+        inviteMembers(
             data,
             () => {
                 this.handleHide(false);
-- 
cgit v1.2.3-1-g7c22

