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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b1520d0b94
Коммит
b114062c1b
@@ -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');
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user