Inital support for multi-tab loging

This commit is contained in:
=Corey Hulen
2015-10-16 09:10:54 -07:00
parent c890e21cef
commit 6a1755d2e3
64 changed files with 409 additions and 313 deletions

View File

@@ -232,6 +232,7 @@ export function logout() {
track('api', 'api_users_logout');
var currentTeamUrl = TeamStore.getCurrentTeamUrl();
BrowserStore.clear();
ErrorStore.storeLastError(null);
window.location.href = currentTeamUrl + '/logout';
}
@@ -385,10 +386,9 @@ export function getAllTeams(success, error) {
});
}
export function getMeSynchronous(success, error) {
export function getMe(success, error) {
var currentUser = null;
$.ajax({
async: false,
cache: false,
url: '/api/v1/users/me',
dataType: 'json',
@@ -402,7 +402,7 @@ export function getMeSynchronous(success, error) {
},
error: function onError(xhr, status, err) {
if (error) {
var e = handleError('getMeSynchronous', xhr, status, err);
var e = handleError('getMe', xhr, status, err);
error(e);
}
}