Skip to content

Commit

Permalink
client: reload page on tls settings save
Browse files Browse the repository at this point in the history
  • Loading branch information
IldarKamalov committed Dec 26, 2022
1 parent 97af23b commit 3985dc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/actions/encryption.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ 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();
Expand Down

0 comments on commit 3985dc4

Please sign in to comment.