mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix schema boolean setting display (#990)
This commit is contained in:
1 parent
c2c8ee2e64
commit
2305e168f0
1 file changed
+1
-1
@@ -88,7 +88,7 @@ function schemaToSettings(schema: Schema<any>) {
|
|||||||
let flag = (s.meta?.hidden ? FLAG_HIDDEN : 0)
|
let flag = (s.meta?.hidden ? FLAG_HIDDEN : 0)
|
||||||
| (s.meta?.disabled ? FLAG_DISABLED : 0);
|
| (s.meta?.disabled ? FLAG_DISABLED : 0);
|
||||||
const type = s.type === 'number' ? 'number'
|
const type = s.type === 'number' ? 'number'
|
||||||
: s.type === 'boolean' ? 'checkbox'
|
: s.type === 'boolean' ? 'boolean'
|
||||||
: s.meta?.role === 'markdown' ? 'markdown'
|
: s.meta?.role === 'markdown' ? 'markdown'
|
||||||
: s.meta?.role === 'textarea' ? 'textarea' : 'text';
|
: s.meta?.role === 'textarea' ? 'textarea' : 'text';
|
||||||
if (s.meta?.role === 'password') flag |= FLAG_SECRET;
|
if (s.meta?.role === 'password') flag |= FLAG_SECRET;
|
||||||
|
|||||||
Reference in new issue
Block a user