From e481922d91bf8b0b163a10c8597e4bb29075b7b1 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Wed, 21 Dec 2022 18:13:07 +0300 Subject: [PATCH] Pull request: 4898 fix redirect to current protocol on tls settings change Updates #4898 Squashed commit of the following: commit b10b0a5adeeb44375912d34a9ef60a7f4ff9688c Merge: 9d4bc0ef defde7d0 Author: Ildar Kamalov Date: Wed Dec 21 17:49:52 2022 +0300 Merge branch 'master' into 4898-tls-redirect commit 9d4bc0efaf1639380325f75684514386ec581206 Author: Ildar Kamalov Date: Wed Dec 21 16:39:17 2022 +0300 fix helper commit cb5b43e65c6224b6d9fe012b52a18ee8e2e1c19a Author: Ildar Kamalov Date: Mon Dec 19 19:16:07 2022 +0300 client: reload page on tls enable --- client/src/actions/encryption.js | 3 ++- client/src/components/Logs/Logs.css | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/client/src/actions/encryption.js b/client/src/actions/encryption.js index 2f58abd3..670a9f4e 100644 --- a/client/src/actions/encryption.js +++ b/client/src/actions/encryption.js @@ -41,6 +41,8 @@ export const setTlsConfig = (config) => async (dispatch, getState) => { response.certificate_chain = atob(response.certificate_chain); response.private_key = atob(response.private_key); + redirectToCurrentProtocol(response, httpPort); + const dnsStatus = await apiClient.getGlobalStatus(); if (dnsStatus) { dispatch(dnsStatusSuccess(dnsStatus)); @@ -48,7 +50,6 @@ export const setTlsConfig = (config) => async (dispatch, getState) => { dispatch(setTlsConfigSuccess(response)); dispatch(addSuccessToast('encryption_config_saved')); - redirectToCurrentProtocol(response, httpPort); } catch (error) { dispatch(addErrorToast({ error })); dispatch(setTlsConfigFailure()); diff --git a/client/src/components/Logs/Logs.css b/client/src/components/Logs/Logs.css index 138cd5c9..8df1d62b 100644 --- a/client/src/components/Logs/Logs.css +++ b/client/src/components/Logs/Logs.css @@ -172,10 +172,8 @@ display: inline-flex; align-items: center; justify-content: center; - - --size: 2.5rem; - width: var(--size); - height: var(--size); + width: 2.5rem; + height: 2.5rem; padding: 0; margin-left: 0.9375rem; background-color: transparent; @@ -472,7 +470,7 @@ .filteringRules__filter { font-style: italic; - font-weight: normal; + font-weight: 400; margin-bottom: 1rem; }