From f77e6f784fee3b343e209222fb847ab100474c51 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Wed, 22 Jan 2025 18:03:24 -0300 Subject: [PATCH] fix: consider different values of settings Signed-off-by: Vitor Mattos --- src/views/Settings/Validation.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/Settings/Validation.vue b/src/views/Settings/Validation.vue index 2a4316d846..3a44b4b4f4 100644 --- a/src/views/Settings/Validation.vue +++ b/src/views/Settings/Validation.vue @@ -97,21 +97,21 @@ export default { generateOcsUrl('/apps/provisioning_api/api/v1/config/apps/libresign/make_validation_url_private'), ) const value = response?.data?.ocs?.data.data - this.makeValidationUrlPrivate = value === true || value === 'true' + this.makeValidationUrlPrivate = ['true', true, '1', 1].includes(value) }, async getAddFooterData() { const response = await axios.get( generateOcsUrl('/apps/provisioning_api/api/v1/config/apps/libresign/add_footer'), ) const value = response?.data?.ocs?.data.data - this.addFooter = value === true || value === 'true' + this.addFooter = ['true', true, '1', 1].includes(value) }, async getWriteQrcodeOnFooter() { const response = await axios.get( generateOcsUrl('/apps/provisioning_api/api/v1/config/apps/libresign/write_qrcode_on_footer'), ) const value = response?.data?.ocs?.data.data - this.writeQrcodeOnFooter = value === true || value === 'true' + this.writeQrcodeOnFooter = ['true', true, '1', 1].includes(value) }, async getValidationUrlData() { const response = await axios.get(