From b363c0a708876187c2c25adc23c1d9dfb4293534 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Wed, 1 Jan 2025 12:44:57 -0300 Subject: [PATCH 1/2] fix: condition to display saved settings Signed-off-by: Vitor Mattos --- src/views/Settings/RootCertificateCfssl.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Settings/RootCertificateCfssl.vue b/src/views/Settings/RootCertificateCfssl.vue index 603ec3d97f..ea18c36d0a 100644 --- a/src/views/Settings/RootCertificateCfssl.vue +++ b/src/views/Settings/RootCertificateCfssl.vue @@ -25,7 +25,7 @@ -
+
@@ -65,7 +65,7 @@ -
+
Date: Wed, 1 Jan 2025 12:45:22 -0300 Subject: [PATCH 2/2] chore: identation Signed-off-by: Vitor Mattos --- src/views/Settings/RootCertificateCfssl.vue | 3 ++- src/views/Settings/RootCertificateOpenSsl.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/Settings/RootCertificateCfssl.vue b/src/views/Settings/RootCertificateCfssl.vue index ea18c36d0a..38aa454ffc 100644 --- a/src/views/Settings/RootCertificateCfssl.vue +++ b/src/views/Settings/RootCertificateCfssl.vue @@ -264,7 +264,8 @@ export default { throw new Error(response.data.ocs.data) } this.certificate = response.data.ocs.data - this.customData = loadState('libresign', 'config_path').length > 0 && (this.certificate?.cfsslUri?.length > 0 || this.certificate.configPath.length > 0) + this.customData = loadState('libresign', 'config_path').length > 0 + && (this.certificate?.cfsslUri?.length > 0 || this.certificate.configPath.length > 0) if (this.certificate.generated) { this.afterCertificateGenerated() return diff --git a/src/views/Settings/RootCertificateOpenSsl.vue b/src/views/Settings/RootCertificateOpenSsl.vue index 0ad57264ce..19f8178b76 100644 --- a/src/views/Settings/RootCertificateOpenSsl.vue +++ b/src/views/Settings/RootCertificateOpenSsl.vue @@ -249,7 +249,8 @@ export default { throw new Error(response.data.ocs.data) } this.certificate = response.data.ocs.data - this.customData = loadState('libresign', 'config_path').length > 0 && this.certificate.configPath.length > 0 + this.customData = loadState('libresign', 'config_path').length > 0 + && this.certificate.configPath.length > 0 if (this.certificate.generated) { this.afterCertificateGenerated() }