diff options
author | =Corey Hulen <corey@hulen.com> | 2015-10-01 17:52:47 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-10-01 17:52:47 -0700 |
commit | 430806301da06e927b8d7d6dcba20ea4b6b6d6c1 (patch) | |
tree | 8a457efc7d5570679c3a2ae607b0a52f79cfa981 /web/react/pages/channel.jsx | |
parent | 013df9f6614fcf8816dc29bc8f07d05a605e47e0 (diff) | |
download | chat-430806301da06e927b8d7d6dcba20ea4b6b6d6c1.tar.gz chat-430806301da06e927b8d7d6dcba20ea4b6b6d6c1.tar.bz2 chat-430806301da06e927b8d7d6dcba20ea4b6b6d6c1.zip |
PLT-44 allow team switching without the need to login
Diffstat (limited to 'web/react/pages/channel.jsx')
-rw-r--r-- | web/react/pages/channel.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/pages/channel.jsx b/web/react/pages/channel.jsx index 74259194a..c333fd57d 100644 --- a/web/react/pages/channel.jsx +++ b/web/react/pages/channel.jsx @@ -36,11 +36,14 @@ var RemovedFromChannelModal = require('../components/removed_from_channel_modal. var FileUploadOverlay = require('../components/file_upload_overlay.jsx'); var RegisterAppModal = require('../components/register_app_modal.jsx'); var ImportThemeModal = require('../components/user_settings/import_theme_modal.jsx'); +var TeamStore = require('../stores/team_store.jsx'); var Constants = require('../utils/constants.jsx'); var ActionTypes = Constants.ActionTypes; function setupChannelPage(props) { + TeamStore.setCurrentId(props.TeamId); + AppDispatcher.handleViewAction({ type: ActionTypes.CLICK_CHANNEL, name: props.ChannelName, @@ -71,6 +74,7 @@ function setupChannelPage(props) { React.render( <Sidebar teamDisplayName={props.TeamDisplayName} + teamName={props.TeamName} teamType={props.TeamType} />, document.getElementById('sidebar-left') |