Этот коммит содержится в:
David Lu
2016-05-27 11:52:19 -07:00
коммит произвёл Christopher Speller
родитель 6f8d4a18ee
Коммит ca9f348be6
2 изменённых файлов: 16 добавлений и 10 удалений

10
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);
}