summaryrefslogtreecommitdiffstats
path: root/web/react/components/new_channel.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-08-11 11:58:08 -0400
committerJoramWilander <jwawilander@gmail.com>2015-08-11 12:14:58 -0400
commitf03e18280155b12ff78ffd57e843cfa70fe1a3eb (patch)
treea82401bc52a12df03d0fabc6db166749e5297ff5 /web/react/components/new_channel.jsx
parent4127c2b258e49e6bb555340d2a5b638c50fd90a2 (diff)
downloadchat-f03e18280155b12ff78ffd57e843cfa70fe1a3eb.tar.gz
chat-f03e18280155b12ff78ffd57e843cfa70fe1a3eb.tar.bz2
chat-f03e18280155b12ff78ffd57e843cfa70fe1a3eb.zip
switch to channel after creation
Diffstat (limited to 'web/react/components/new_channel.jsx')
-rw-r--r--web/react/components/new_channel.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/react/components/new_channel.jsx b/web/react/components/new_channel.jsx
index 973643de7..b00376758 100644
--- a/web/react/components/new_channel.jsx
+++ b/web/react/components/new_channel.jsx
@@ -60,8 +60,7 @@ module.exports = React.createClass({
$(this.refs.modal.getDOMNode()).modal('hide');
asyncClient.getChannel(data.id);
- utils.updateTabTitle(channel.display_name);
- utils.updateAddressBar(channel.name);
+ utils.switchChannel(data);
this.refs.display_name.getDOMNode().value = '';
this.refs.channel_name.getDOMNode().value = '';