diff options
Diffstat (limited to 'webapp/actions/channel_actions.jsx')
-rw-r--r-- | webapp/actions/channel_actions.jsx | 10 |
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 |