Merge pull request #2529 from mattermost/plt-2383

PLT-2383 Fixed system console login page flash.
Этот коммит содержится в:
Harrison Healey
2016-03-24 12:45:12 -04:00
родитель 998ce12133 d6a6668a39
Коммит c64b12e27a
35 изменённых файлов: 152 добавлений и 177 удалений

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

@@ -17,6 +17,7 @@ import * as client from './client.jsx';
import Autolinker from 'autolinker';
import React from 'react';
import {browserHistory} from 'react-router';
import {FormattedTime} from 'react-intl';
import icon50 from 'images/icon50x50.png';
@@ -170,7 +171,7 @@ export function notifyMe(title, body, channel) {
if (channel) {
switchChannel(channel);
} else {
window.location.href = TeamStore.getCurrentTeamUrl() + '/channels/town-square';
browserHistory.push(TeamStore.getCurrentTeamUrl() + '/channels/town-square');
}
};
setTimeout(() => {
@@ -1303,7 +1304,7 @@ export function openDirectChannelToUser(user, successCb, errorCb) {
}
},
() => {
window.location.href = TeamStore.getCurrentTeamUrl() + '/channels/' + channelName;
browserHistory.push(TeamStore.getCurrentTeamUrl() + '/channels/' + channelName);
if ($.isFunction(errorCb)) {
errorCb();
}