diff --git a/client/src/__locales/en.json b/client/src/__locales/en.json index b986dea1..7ec9c779 100644 --- a/client/src/__locales/en.json +++ b/client/src/__locales/en.json @@ -393,6 +393,7 @@ "encryption_issuer": "Issuer", "encryption_hostnames": "Hostnames", "encryption_reset": "Are you sure you want to reset encryption settings?", + "encryption_warning": "Warning", "topline_expiring_certificate": "Your SSL certificate is about to expire. Update <0>Encryption settings0>.", "topline_expired_certificate": "Your SSL certificate is expired. Update <0>Encryption settings0>.", "form_error_port_range": "Enter port number in the range of 80-65535", diff --git a/client/src/components/Settings/Encryption/Form.js b/client/src/components/Settings/Encryption/Form.js index b94dd94b..9df440aa 100644 --- a/client/src/components/Settings/Encryption/Form.js +++ b/client/src/components/Settings/Encryption/Form.js @@ -56,6 +56,26 @@ const clearFields = (change, setTlsConfig, t) => { } }; +const validationMessage = (warningValidation, isWarning) => { + if (!warningValidation) { + return null; + } + + if (isWarning) { + return ( +
{warningValidation}
+