mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
added team store, team settings menu, and the ability to turn on valet feature from client
This commit is contained in:
@@ -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");
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user