summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-02 17:35:59 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-02 17:35:59 -0500
commit6428878e20fa54b7bb6b2bf6e0aaaeb637affa59 (patch)
tree56c32ca5cb1569de8289dbc23a14680285505ed5 /web/react/utils
parent02b9414e0f0169c99044ad96456290766ffcd585 (diff)
downloadchat-6428878e20fa54b7bb6b2bf6e0aaaeb637affa59.tar.gz
chat-6428878e20fa54b7bb6b2bf6e0aaaeb637affa59.tar.bz2
chat-6428878e20fa54b7bb6b2bf6e0aaaeb637affa59.zip
Moved InviteMemberModal to be controlled by a store
Diffstat (limited to 'web/react/utils')
-rw-r--r--web/react/utils/channel_intro_mssages.jsx6
-rw-r--r--web/react/utils/constants.jsx3
2 files changed, 4 insertions, 5 deletions
diff --git a/web/react/utils/channel_intro_mssages.jsx b/web/react/utils/channel_intro_mssages.jsx
index fdeb17bc1..161c79761 100644
--- a/web/react/utils/channel_intro_mssages.jsx
+++ b/web/react/utils/channel_intro_mssages.jsx
@@ -3,6 +3,7 @@
// See License.txt for license information.
const Utils = require('./utils.jsx');
+const InviteMemberModal = require('../components/invite_member_modal.jsx');
const UserProfile = require('../components/user_profile.jsx');
const ChannelStore = require('../stores/channel_store.jsx');
const Constants = require('../utils/constants.jsx');
@@ -109,8 +110,7 @@ export function createDefaultIntroMessage(channel) {
<a
className='intro-links'
href='#'
- data-toggle='modal'
- data-target='#invite_member'
+ onClick={InviteMemberModal.show}
>
<i className='fa fa-user-plus'></i>{'Invite others to this team'}
</a>
@@ -186,8 +186,6 @@ export function createStandardIntroMessage(channel) {
);
}
- // TODO show channel_invite modal now that it's a React-Bootstrap modal
-
return (
<div className='channel-intro'>
<h4 className='channel-intro__title'>{'Beginning of ' + uiName}</h4>
diff --git a/web/react/utils/constants.jsx b/web/react/utils/constants.jsx
index 8884d1d10..51cd41b6d 100644
--- a/web/react/utils/constants.jsx
+++ b/web/react/utils/constants.jsx
@@ -39,7 +39,8 @@ module.exports = {
RECIEVED_LOGS: null,
RECIEVED_ALL_TEAMS: null,
- TOGGLE_IMPORT_THEME_MODAL: null
+ TOGGLE_IMPORT_THEME_MODAL: null,
+ TOGGLE_INVITE_MEMBER_MODAL: null
}),
PayloadSources: keyMirror({