summaryrefslogtreecommitdiffstats
path: root/web/react/pages/channel.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-08-14 08:48:24 -0400
committerChristopher Speller <crspeller@gmail.com>2015-08-14 08:48:24 -0400
commit92c4df5b109ac8b15f6384a5c027024696bbd4d8 (patch)
tree41a18a9bcbbcc7cd961cc424878ac37aade5c288 /web/react/pages/channel.jsx
parenta8930cbabec21635a10e8cac4d2c0c79867f283d (diff)
parent8fc4456213c5ee16863b7f1bcb20e35a19469a1d (diff)
downloadchat-92c4df5b109ac8b15f6384a5c027024696bbd4d8.tar.gz
chat-92c4df5b109ac8b15f6384a5c027024696bbd4d8.tar.bz2
chat-92c4df5b109ac8b15f6384a5c027024696bbd4d8.zip
Merge pull request #370 from hmhealey/mm1812
MM-1812 Provide warnings on team invite screens when email is disabled
Diffstat (limited to 'web/react/pages/channel.jsx')
-rw-r--r--web/react/pages/channel.jsx21
1 files changed, 11 insertions, 10 deletions
diff --git a/web/react/pages/channel.jsx b/web/react/pages/channel.jsx
index 90d90b29f..929499715 100644
--- a/web/react/pages/channel.jsx
+++ b/web/react/pages/channel.jsx
@@ -1,7 +1,6 @@
// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
// See License.txt for license information.
-
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
var Navbar = require('../components/navbar.jsx');
var Sidebar = require('../components/sidebar.jsx');
@@ -36,21 +35,23 @@ var AccessHistoryModal = require('../components/access_history_modal.jsx');
var ActivityLogModal = require('../components/activity_log_modal.jsx');
var RemovedFromChannelModal = require('../components/removed_from_channel_modal.jsx')
+var AsyncClient = require('../utils/async_client.jsx');
var Constants = require('../utils/constants.jsx');
var ActionTypes = Constants.ActionTypes;
global.window.setup_channel_page = function(team_name, team_type, team_id, channel_name, channel_id) {
+ AsyncClient.getConfig();
AppDispatcher.handleViewAction({
- type: ActionTypes.CLICK_CHANNEL,
- name: channel_name,
- id: channel_id
+ type: ActionTypes.CLICK_CHANNEL,
+ name: channel_name,
+ id: channel_id
});
AppDispatcher.handleViewAction({
- type: ActionTypes.CLICK_TEAM,
- id: team_id
+ type: ActionTypes.CLICK_TEAM,
+ id: team_id
});
React.render(
@@ -99,7 +100,7 @@ global.window.setup_channel_page = function(team_name, team_type, team_id, chann
);
React.render(
- <MemberInviteModal />,
+ <MemberInviteModal teamType={team_type} />,
document.getElementById('invite_member_modal')
);
@@ -194,17 +195,17 @@ global.window.setup_channel_page = function(team_name, team_type, team_id, chann
);
React.render(
- <MentionList id="post_textbox" />,
+ <MentionList id='post_textbox' />,
document.getElementById('post_mention_tab')
);
React.render(
- <MentionList id="reply_textbox" />,
+ <MentionList id='reply_textbox' />,
document.getElementById('reply_mention_tab')
);
React.render(
- <MentionList id="edit_textbox" />,
+ <MentionList id='edit_textbox' />,
document.getElementById('edit_mention_tab')
);