mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
ui: fix setting display
This commit is contained in:
1 parent
8fb4a9b71f
commit
149edf6f33
2 files changed
+3
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.22.7",
|
||||
"version": "4.22.8",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -67,11 +67,12 @@
|
||||
placeholder:_('(Not changed)') if secret else ''
|
||||
}) }}
|
||||
{% elif setting.type == 'boolean' %}
|
||||
{% set _val = current[setting.key] %}
|
||||
{{ form.form_checkbox({
|
||||
label:setting.name,
|
||||
help_text:setting.desc,
|
||||
name:setting.key,
|
||||
value:current[setting.key] or setting.value,
|
||||
value:setting.value if (_val === undefined or _val === null) else _val,
|
||||
disabled:setting.disabled
|
||||
})}}
|
||||
{{ form.form_checkbox({
|
||||
|
||||
Reference in new issue
Block a user