summaryrefslogtreecommitdiffstats
path: root/webapp/components/login
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-12-22 15:20:36 -0300
committerCorey Hulen <corey@hulen.com>2016-12-22 10:20:36 -0800
commitb79b2b2a53935cd883312c1158918291a926bacd (patch)
treefeb178ef53b3f8edf47824556bd4ba57ded8ce8d /webapp/components/login
parentc9eb23a3d44c96042522bf7cdefc65903eb1d0a3 (diff)
downloadchat-b79b2b2a53935cd883312c1158918291a926bacd.tar.gz
chat-b79b2b2a53935cd883312c1158918291a926bacd.tar.bz2
chat-b79b2b2a53935cd883312c1158918291a926bacd.zip
Fix team switch (#4851)
* Fix team switch * Fix channel switching by using BrowserStore * Fixes plt-5076 and plt-5068 * Updating styles for Teams sidebar (#4875)
Diffstat (limited to 'webapp/components/login')
-rw-r--r--webapp/components/login/login_controller.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/login/login_controller.jsx b/webapp/components/login/login_controller.jsx
index 005f278bd..6dc7af883 100644
--- a/webapp/components/login/login_controller.jsx
+++ b/webapp/components/login/login_controller.jsx
@@ -6,6 +6,7 @@ import ErrorBar from 'components/error_bar.jsx';
import FormError from 'components/form_error.jsx';
import * as GlobalActions from 'actions/global_actions.jsx';
+import BrowserStore from 'stores/browser_store.jsx';
import UserStore from 'stores/user_store.jsx';
import Client from 'client/web_client.jsx';
@@ -52,7 +53,7 @@ export default class LoginController extends React.Component {
componentDidMount() {
document.title = global.window.mm_config.SiteName;
-
+ BrowserStore.removeGlobalItem('team');
if (UserStore.getCurrentUser()) {
GlobalActions.redirectUserToDefaultTeam();
}