mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix legacy setting render
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -90,7 +90,8 @@ function schemaToSettings(schema: Schema<any>) {
|
||||
| (s.meta?.disabled ? FLAG_DISABLED : 0);
|
||||
const type = s.type === 'number' ? 'number'
|
||||
: s.type === 'boolean' ? 'checkbox'
|
||||
: s.meta?.role === 'textarea' ? 'textarea' : 'text';
|
||||
: s.meta?.role === 'markdown' ? 'markdown'
|
||||
: s.meta?.role === 'textarea' ? 'textarea' : 'text';
|
||||
if (s.meta?.role === 'password') flag |= FLAG_SECRET;
|
||||
const options = {};
|
||||
for (const item of s.list || []) {
|
||||
|
||||
@@ -176,7 +176,7 @@ export function apply(ctx: Context) {
|
||||
);
|
||||
c.setting.SystemSetting(Schema.object({
|
||||
'ui-default': Schema.object({
|
||||
footer_extra_html: Schema.string().default(''),
|
||||
footer_extra_html: Schema.string().role('textarea').default(''),
|
||||
nav_logo_dark: Schema.string().default('/components/navigation/nav-logo-small_dark.png'),
|
||||
preload: Schema.string().default(''),
|
||||
domainNavigation: Schema.boolean().default(true).description('Show Domain Navigation'),
|
||||
|
||||
Reference in new issue
Block a user