Fix boolean show_if conditionals (#9218)

**Description**

Some of the WebUI `show_if` conditionals were broken due to comparing
boolean values with string values.

⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [x] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [x] ⚖️ My code follows the style guidelines of this project
- [x] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [x] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [x] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Michael Schnerring
2023-05-28 18:35:27 +00:00
committed by GitHub
parent e77a030051
commit ce3f2c156d
6 changed files with 8 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ sources:
- https://0xerr0r.github.io/blocky/
- https://github.com/0xERR0R/blocky
- https://github.com/Mozart409/blocky-frontend
version: 5.0.34
version: 5.0.35
annotations:
truecharts.org/catagories: |
- network

View File

@@ -689,7 +689,7 @@ questions:
schema:
type: boolean
default: false
show_if: [["enabled", "=", "true"]]
show_if: [["enabled", "=", true]]
show_subquestions_if: true
subquestions:
- variable: ttl

View File

@@ -21,7 +21,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/enterprise/cert-manager
- https://cert-manager.io/
type: application
version: 1.0.0
version: 1.0.1
annotations:
truecharts.org/catagories: |
- core

View File

@@ -230,7 +230,7 @@ questions:
schema:
type: string
required: true
show_if: [["selfSigned", "=", "true"]]
show_if: [["selfSigned", "=", true]]
default: "my-selfsigned-ca"
- variable: crt
label: "Custom CA cert (experimental)"
@@ -238,7 +238,7 @@ questions:
schema:
type: string
required: true
show_if: [["selfSigned", "=", "false"]]
show_if: [["selfSigned", "=", false]]
default: ""
- variable: key
label: "Custom CA key (experimental)"
@@ -246,7 +246,7 @@ questions:
schema:
type: string
required: true
show_if: [["selfSigned", "=", "false"]]
show_if: [["selfSigned", "=", false]]
default: ""
- variable: selfSigned

View File

@@ -22,7 +22,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/lama-cleaner
- https://github.com/Sanster/lama-cleaner
type: application
version: 2.0.19
version: 2.0.20
annotations:
truecharts.org/catagories: |
- media

View File

@@ -70,7 +70,7 @@ questions:
description: Stable diffusion need HuggingFace access token to download model
schema:
type: string
show_if: [[ "sd_run_local", "=", "true"]]
show_if: [[ "sd_run_local", "=", true]]
private: true
default: ""
- variable: sd_disable_nsfw