- client: request tls status on app load
This commit is contained in:
parent
b45e8e80fb
commit
b3c2b3a21b
|
@ -6,6 +6,7 @@ import axios from 'axios';
|
||||||
|
|
||||||
import { normalizeHistory, normalizeFilteringStatus, normalizeLogs, normalizeTextarea, sortClients } from '../helpers/helpers';
|
import { normalizeHistory, normalizeFilteringStatus, normalizeLogs, normalizeTextarea, sortClients } from '../helpers/helpers';
|
||||||
import { SETTINGS_NAMES, CHECK_TIMEOUT } from '../helpers/constants';
|
import { SETTINGS_NAMES, CHECK_TIMEOUT } from '../helpers/constants';
|
||||||
|
import { getTlsStatus } from './encryption';
|
||||||
import Api from '../api/Api';
|
import Api from '../api/Api';
|
||||||
|
|
||||||
const apiClient = new Api();
|
const apiClient = new Api();
|
||||||
|
@ -269,6 +270,7 @@ export const getDnsStatus = () => async (dispatch) => {
|
||||||
dispatch(getVersion());
|
dispatch(getVersion());
|
||||||
dispatch(getClients());
|
dispatch(getClients());
|
||||||
dispatch(getTopStats());
|
dispatch(getTopStats());
|
||||||
|
dispatch(getTlsStatus());
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
dispatch(addErrorToast({ error }));
|
dispatch(addErrorToast({ error }));
|
||||||
dispatch(initSettingsFailure());
|
dispatch(initSettingsFailure());
|
||||||
|
|
|
@ -11,9 +11,7 @@ import Loading from '../../ui/Loading';
|
||||||
|
|
||||||
class Encryption extends Component {
|
class Encryption extends Component {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const { getTlsStatus, validateTlsConfig, encryption } = this.props;
|
const { validateTlsConfig, encryption } = this.props;
|
||||||
|
|
||||||
getTlsStatus();
|
|
||||||
|
|
||||||
if (encryption.enabled) {
|
if (encryption.enabled) {
|
||||||
validateTlsConfig(encryption);
|
validateTlsConfig(encryption);
|
||||||
|
|
Loading…
Reference in New Issue