summaryrefslogtreecommitdiffstats
path: root/webapp/actions
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-05-27 11:52:19 -0700
committerChristopher Speller <crspeller@gmail.com>2016-05-27 14:52:19 -0400
commitca9f348be6bf62fc888df9a710c9af155872528e (patch)
tree591dd3084010e280226e4da53680d402397e6be1 /webapp/actions
parent6f8d4a18eecfa9f0b8e817e75555e447d33faeb2 (diff)
downloadchat-ca9f348be6bf62fc888df9a710c9af155872528e.tar.gz
chat-ca9f348be6bf62fc888df9a710c9af155872528e.tar.bz2
chat-ca9f348be6bf62fc888df9a710c9af155872528e.zip
Changed channel navigation (#3142)
Diffstat (limited to 'webapp/actions')
-rw-r--r--webapp/actions/channel_actions.jsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/webapp/actions/channel_actions.jsx b/webapp/actions/channel_actions.jsx
new file mode 100644
index 000000000..7987bf87c
--- /dev/null
+++ b/webapp/actions/channel_actions.jsx
@@ -0,0 +1,10 @@
+// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import {browserHistory} from 'react-router';
+
+import TeamStore from 'stores/team_store.jsx';
+
+export function goToChannel(channel) {
+ browserHistory.push(TeamStore.getCurrentTeamRelativeUrl() + '/channels/' + channel.name);
+} \ No newline at end of file