Skip to content

Commit

Permalink
fix: consider different values of settings
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Jan 22, 2025
1 parent 1e0e8d5 commit f77e6f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/Settings/Validation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f77e6f7

Please sign in to comment.