Skip to content

Commit

Permalink
Pull request: 4898 fix redirect to current protocol on tls settings c…
Browse files Browse the repository at this point in the history
…hange

Updates #4898

Squashed commit of the following:

commit b10b0a5
Merge: 9d4bc0e defde7d
Author: Ildar Kamalov <ik@adguard.com>
Date:   Wed Dec 21 17:49:52 2022 +0300

    Merge branch 'master' into 4898-tls-redirect

commit 9d4bc0e
Author: Ildar Kamalov <ik@adguard.com>
Date:   Wed Dec 21 16:39:17 2022 +0300

    fix helper

commit cb5b43e
Author: Ildar Kamalov <ik@adguard.com>
Date:   Mon Dec 19 19:16:07 2022 +0300

    client: reload page on tls enable
  • Loading branch information
IldarKamalov committed Dec 21, 2022
1 parent defde7d commit e481922
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion client/src/actions/encryption.js
Expand Up @@ -41,14 +41,15 @@ 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));
}

dispatch(setTlsConfigSuccess(response));
dispatch(addSuccessToast('encryption_config_saved'));
redirectToCurrentProtocol(response, httpPort);
} catch (error) {
dispatch(addErrorToast({ error }));
dispatch(setTlsConfigFailure());
Expand Down
8 changes: 3 additions & 5 deletions client/src/components/Logs/Logs.css
Expand Up @@ -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;
Expand Down Expand Up @@ -472,7 +470,7 @@

.filteringRules__filter {
font-style: italic;
font-weight: normal;
font-weight: 400;
margin-bottom: 1rem;
}

Expand Down

0 comments on commit e481922

Please sign in to comment.