added team store, team settings menu, and the ability to turn on valet feature from client

This commit is contained in:
JoramWilander
2015-06-18 10:40:46 -04:00
parent 1dc3a5f26d
commit 308c4f3ce9
16 changed files with 445 additions and 20 deletions

View File

@@ -355,3 +355,25 @@ module.exports.getStatuses = function() {
}
);
}
module.exports.getMyTeam = function() {
if (isCallInProgress("getMyTeam")) return;
callTracker["getMyTeam"] = utils.getTimestamp();
client.getMyTeam(
function(data, textStatus, xhr) {
callTracker["getMyTeam"] = 0;
if (xhr.status === 304 || !data) return;
AppDispatcher.handleServerAction({
type: ActionTypes.RECIEVED_TEAM,
team: data
});
},
function(err) {
callTracker["getMyTeam"] = 0;
dispatchError(err, "getMyTeam");
}
);
}