PLT-11 Adding ability to save config file

Этот коммит содержится в:
=Corey Hulen
2015-09-17 21:00:59 -07:00
родитель 82127341ca
Коммит 44714dfcb1
14 изменённых файлов: 843 добавлений и 296 удалений

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

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