Refresh login page if server version of client doesn't match browser version of client (#3004)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
2ccf5bbaa2
Коммит
34780f3aea
@@ -9,6 +9,7 @@ import * as GlobalActions from 'action_creators/global_actions.jsx';
|
||||
import UserStore from 'stores/user_store.jsx';
|
||||
|
||||
import Client from 'utils/web_client.jsx';
|
||||
import * as AsyncClient from 'utils/async_client.jsx';
|
||||
import * as TextFormatting from 'utils/text_formatting.jsx';
|
||||
|
||||
import * as Utils from 'utils/utils.jsx';
|
||||
@@ -44,6 +45,8 @@ export default class Login extends React.Component {
|
||||
if (UserStore.getCurrentUser()) {
|
||||
browserHistory.push('/select_team');
|
||||
}
|
||||
|
||||
AsyncClient.checkVersion();
|
||||
}
|
||||
|
||||
preSubmit(e) {
|
||||
|
||||
Ссылка в новой задаче
Block a user