diff options
Diffstat (limited to 'web/react/pages')
-rw-r--r-- | web/react/pages/channel.jsx | 21 | ||||
-rw-r--r-- | web/react/pages/signup_team.jsx | 8 |
2 files changed, 17 insertions, 12 deletions
diff --git a/web/react/pages/channel.jsx b/web/react/pages/channel.jsx index 1f07cb519..6e4baa582 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'); @@ -37,21 +36,23 @@ var ActivityLogModal = require('../components/activity_log_modal.jsx'); var RemovedFromChannelModal = require('../components/removed_from_channel_modal.jsx') var FileUploadOverlay = require('../components/file_upload_overlay.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( @@ -100,7 +101,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') ); @@ -195,17 +196,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') ); diff --git a/web/react/pages/signup_team.jsx b/web/react/pages/signup_team.jsx index e982f5a79..37c441d4f 100644 --- a/web/react/pages/signup_team.jsx +++ b/web/react/pages/signup_team.jsx @@ -1,11 +1,15 @@ // Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. // See License.txt for license information. -var SignupTeam =require('../components/signup_team.jsx'); +var SignupTeam = require('../components/signup_team.jsx'); + +var AsyncClient = require('../utils/async_client.jsx'); global.window.setup_signup_team_page = function() { + AsyncClient.getConfig(); + React.render( <SignupTeam />, document.getElementById('signup-team') ); -};
\ No newline at end of file +}; |