Request tls status after save

This commit is contained in:
Ildar Kamalov 2019-01-30 19:46:26 +03:00 committed by Eugene Bujak
parent c19416bf8e
commit 3898309778
3 changed files with 4 additions and 1 deletions

View File

@ -683,6 +683,7 @@ export const setTlsConfig = config => async (dispatch) => {
await apiClient.setTlsConfig(values);
dispatch(setTlsConfigSuccess(config));
dispatch(addSuccessToast('encryption_config_saved'));
dispatch(getTlsStatus());
} catch (error) {
dispatch(addErrorToast({ error }));
dispatch(setTlsConfigFailure());

View File

@ -22,7 +22,7 @@ class Encryption extends Component {
return (
<div className="encryption">
{encryption && !encryption.processing &&
{encryption &&
<Card
title={t('encryption_title')}
subtitle={t('encryption_desc')}

View File

@ -327,6 +327,8 @@ const encryption = handleActions({
}, {
processing: true,
processingConfig: false,
status_cert: '',
status_key: '',
});
export default combineReducers({