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

Этот коммит содержится в:
JoramWilander
2015-06-18 10:40:46 -04:00
родитель 1dc3a5f26d
Коммит 308c4f3ce9
16 изменённых файлов: 445 добавлений и 20 удалений

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

@@ -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");
}
);
}