PLT-3237 Update displayed config values in admin console after saving (#3506)

* Reloaded admin console data when settings are saved

* Fixed attempting to save an invalid config setting overwriting the stored config
Этот коммит содержится в:
Harrison Healey
2016-07-06 16:07:56 -04:00
коммит произвёл GitHub
родитель b1520d0b94
Коммит b114062c1b
30 изменённых файлов: 327 добавлений и 256 удалений

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

@@ -405,7 +405,7 @@ export function getComplianceReports() {
);
}
export function getConfig() {
export function getConfig(success, error) {
if (isCallInProgress('getConfig')) {
return;
}
@@ -419,10 +419,17 @@ export function getConfig() {
type: ActionTypes.RECEIVED_CONFIG,
config: data
});
if (success) {
success(data);
}
},
(err) => {
callTracker.getConfig = 0;
dispatchError(err, 'getConfig');
if (!error) {
dispatchError(err, 'getConfig');
}
}
);
}