Fix settings.ui: Replace non-existent Tabs控件 with TabPanel控件 and ensure Form控件 uses correct options.fields structure
This commit is contained in:
parent
02b2cdaeec
commit
701aedfa5a
@ -17,7 +17,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"widgettype": "Tabs",
|
||||
"widgettype": "TabPanel",
|
||||
"id": "settings-tabs",
|
||||
"options": {
|
||||
"width": "100%",
|
||||
@ -25,26 +25,8 @@
|
||||
"tabs": [
|
||||
{
|
||||
"label": "General",
|
||||
"id": "general-tab"
|
||||
},
|
||||
{
|
||||
"label": "AI Models",
|
||||
"id": "models-tab"
|
||||
},
|
||||
{
|
||||
"label": "Security",
|
||||
"id": "security-tab"
|
||||
},
|
||||
{
|
||||
"label": "Appearance",
|
||||
"id": "appearance-tab"
|
||||
}
|
||||
]
|
||||
},
|
||||
"subwidgets": [
|
||||
{
|
||||
"content": {
|
||||
"widgettype": "VBox",
|
||||
"id": "general-tab",
|
||||
"options": {
|
||||
"width": "100%",
|
||||
"height": "100%",
|
||||
@ -100,7 +82,7 @@
|
||||
"wid": "self",
|
||||
"event": "click",
|
||||
"actiontype": "registerfunction",
|
||||
"target": "app.general-tab",
|
||||
"target": "app.settings-tabs",
|
||||
"rfname": "save_general_settings",
|
||||
"params": {
|
||||
"form_data": "{{ 'general-settings-form'.data }}"
|
||||
@ -109,10 +91,12 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "AI Models",
|
||||
"content": {
|
||||
"widgettype": "VBox",
|
||||
"id": "models-tab",
|
||||
"options": {
|
||||
"width": "100%",
|
||||
"height": "100%",
|
||||
@ -156,17 +140,19 @@
|
||||
"wid": "self",
|
||||
"event": "click",
|
||||
"actiontype": "registerfunction",
|
||||
"target": "app.models-tab",
|
||||
"target": "app.settings-tabs",
|
||||
"rfname": "add_model",
|
||||
"params": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Security",
|
||||
"content": {
|
||||
"widgettype": "VBox",
|
||||
"id": "security-tab",
|
||||
"options": {
|
||||
"width": "100%",
|
||||
"height": "100%",
|
||||
@ -217,7 +203,7 @@
|
||||
"wid": "self",
|
||||
"event": "click",
|
||||
"actiontype": "registerfunction",
|
||||
"target": "app.security-tab",
|
||||
"target": "app.settings-tabs",
|
||||
"rfname": "save_security_settings",
|
||||
"params": {
|
||||
"require_auth": "{{require-auth.checked}}",
|
||||
@ -227,10 +213,12 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Appearance",
|
||||
"content": {
|
||||
"widgettype": "VBox",
|
||||
"id": "appearance-tab",
|
||||
"options": {
|
||||
"width": "100%",
|
||||
"height": "100%",
|
||||
@ -278,7 +266,7 @@
|
||||
"wid": "self",
|
||||
"event": "click",
|
||||
"actiontype": "registerfunction",
|
||||
"target": "app.appearance-tab",
|
||||
"target": "app.settings-tabs",
|
||||
"rfname": "save_appearance_settings",
|
||||
"params": {
|
||||
"theme": "{{theme-select.value}}"
|
||||
@ -288,7 +276,9 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user