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); 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());

View File

@ -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')}

View File

@ -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({