Refactoring web classes to use multi-session

Этот коммит содержится в:
=Corey Hulen
2015-10-16 19:05:55 -07:00
родитель 8b2d7f391a
Коммит a8f3f76c59
4 изменённых файлов: 139 добавлений и 95 удалений

Просмотреть файл

@@ -2,14 +2,15 @@
// See License.txt for license information.
var ChannelStore = require('../stores/channel_store.jsx');
var TeamStore = require('../stores/team_store.jsx');
var Constants = require('../utils/constants.jsx');
function setupHomePage(props) {
function setupHomePage() {
var last = ChannelStore.getLastVisitedName();
if (last == null || last.length === 0) {
window.location = props.TeamURL + '/channels/' + Constants.DEFAULT_CHANNEL;
window.location = TeamStore.getCurrentTeamUrl() + '/channels/' + Constants.DEFAULT_CHANNEL;
} else {
window.location = props.TeamURL + '/channels/' + last;
window.location = TeamStore.getCurrentTeamUrl() + '/channels/' + last;
}
}