Skip to content

Commit

Permalink
fix helper
Browse files Browse the repository at this point in the history
  • Loading branch information
IldarKamalov committed Dec 21, 2022
1 parent cb5b43e commit 9d4bc0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 1 addition & 5 deletions client/src/actions/encryption.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ export const setTlsConfig = (config) => async (dispatch, getState) => {
response.certificate_chain = atob(response.certificate_chain);
response.private_key = atob(response.private_key);

if (values.enabled && values.force_https && window.location.protocol === 'http:') {
window.location.reload();
return;
}
redirectToCurrentProtocol(response, httpPort);

const dnsStatus = await apiClient.getGlobalStatus();
if (dnsStatus) {
Expand All @@ -53,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());
Expand Down
8 changes: 3 additions & 5 deletions client/src/components/Logs/Logs.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,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 @@ -474,7 +472,7 @@

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

Expand Down

0 comments on commit 9d4bc0e

Please sign in to comment.