Request tls status after save
This commit is contained in:
parent
c19416bf8e
commit
3898309778
|
@ -683,6 +683,7 @@ export const setTlsConfig = config => async (dispatch) => {
|
||||||
await apiClient.setTlsConfig(values);
|
await apiClient.setTlsConfig(values);
|
||||||
dispatch(setTlsConfigSuccess(config));
|
dispatch(setTlsConfigSuccess(config));
|
||||||
dispatch(addSuccessToast('encryption_config_saved'));
|
dispatch(addSuccessToast('encryption_config_saved'));
|
||||||
|
dispatch(getTlsStatus());
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
dispatch(addErrorToast({ error }));
|
dispatch(addErrorToast({ error }));
|
||||||
dispatch(setTlsConfigFailure());
|
dispatch(setTlsConfigFailure());
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Encryption extends Component {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="encryption">
|
<div className="encryption">
|
||||||
{encryption && !encryption.processing &&
|
{encryption &&
|
||||||
<Card
|
<Card
|
||||||
title={t('encryption_title')}
|
title={t('encryption_title')}
|
||||||
subtitle={t('encryption_desc')}
|
subtitle={t('encryption_desc')}
|
||||||
|
|
|
@ -327,6 +327,8 @@ const encryption = handleActions({
|
||||||
}, {
|
}, {
|
||||||
processing: true,
|
processing: true,
|
||||||
processingConfig: false,
|
processingConfig: false,
|
||||||
|
status_cert: '',
|
||||||
|
status_key: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
export default combineReducers({
|
export default combineReducers({
|
||||||
|
|
Loading…
Reference in New Issue