summaryrefslogtreecommitdiffstats
path: root/webapp/components/new_channel_flow.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-03-29 08:08:25 -0700
committerCorey Hulen <corey@hulen.com>2016-03-29 08:08:25 -0700
commitd921c112de622c1919650bc919d32681112cf3a9 (patch)
tree9103b0d16fa676f15591f9704fa62f673aa23cac /webapp/components/new_channel_flow.jsx
parent4a6edbfd0854c097cf8fb64a3ddd75b43dfcd401 (diff)
parent5ce1a4368bafbd2ed50b1953658fca285cfd349b (diff)
downloadchat-d921c112de622c1919650bc919d32681112cf3a9.tar.gz
chat-d921c112de622c1919650bc919d32681112cf3a9.tar.bz2
chat-d921c112de622c1919650bc919d32681112cf3a9.zip
Merge pull request #2558 from mattermost/center-panel-refactor
PLT-2382, PLT-2386, PLT-2455 Channel/permalink view cleanup and fixes.
Diffstat (limited to 'webapp/components/new_channel_flow.jsx')
-rw-r--r--webapp/components/new_channel_flow.jsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/webapp/components/new_channel_flow.jsx b/webapp/components/new_channel_flow.jsx
index 30035ee5d..8c66ef3ce 100644
--- a/webapp/components/new_channel_flow.jsx
+++ b/webapp/components/new_channel_flow.jsx
@@ -2,9 +2,9 @@
// See License.txt for license information.
import * as Utils from 'utils/utils.jsx';
-import * as AsyncClient from 'utils/async_client.jsx';
import * as Client from 'utils/client.jsx';
import UserStore from 'stores/user_store.jsx';
+import * as GlobalActions from 'action_creators/global_actions.jsx';
import NewChannelModal from './new_channel_modal.jsx';
import ChangeURLModal from './change_url_modal.jsx';
@@ -110,8 +110,7 @@ class NewChannelFlow extends React.Component {
Client.createChannel(channel,
(data) => {
this.props.onModalDismissed();
- AsyncClient.getChannel(data.id);
- Utils.switchChannel(data);
+ GlobalActions.emitChannelClickEvent(data);
},
(err) => {
if (err.id === 'model.channel.is_valid.2_or_more.app_error') {
@@ -247,4 +246,4 @@ NewChannelFlow.propTypes = {
onModalDismissed: React.PropTypes.func.isRequired
};
-export default injectIntl(NewChannelFlow); \ No newline at end of file
+export default injectIntl(NewChannelFlow);