Этот коммит содержится в:
=Corey Hulen
2015-09-10 18:32:22 -07:00
родитель 41439eb801
Коммит e06e292be7
14 изменённых файлов: 338 добавлений и 15 удалений

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

@@ -319,6 +319,32 @@ export function getAudits() {
);
}
export function getLogs() {
if (isCallInProgress('getLogs')) {
return;
}
callTracker.getLogs = utils.getTimestamp();
client.getLogs(
(data, textStatus, xhr) => {
callTracker.getLogs = 0;
if (xhr.status === 304 || !data) {
return;
}
AppDispatcher.handleServerAction({
type: ActionTypes.RECIEVED_LOGS,
logs: data
});
},
(err) => {
callTracker.getLogs = 0;
dispatchError(err, 'getLogs');
}
);
}
export function findTeams(email) {
if (isCallInProgress('findTeams_' + email)) {
return;