mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix]New config panel api
This commit is contained in:
parent
7591326959
commit
bf9f83f13a
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ export default {
|
|||
return evaluate(context, expression)
|
||||
},
|
||||
onQueriesResponse (data) {
|
||||
if (!data.config_panel || data.config_panel.length === 0) {
|
||||
if (!data.panel || data.panel.length === 0) {
|
||||
this.panels = null
|
||||
return
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ export default {
|
|||
const forms = {}
|
||||
const validations_ = {}
|
||||
const panels_ = []
|
||||
for (const { id, name, help, sections } of data.config_panel.panel) {
|
||||
for (const { id, name, help, sections } of data.panel) {
|
||||
const panel_ = { id, name, sections: [] }
|
||||
if (help) panel_.help = formatI18nField(help)
|
||||
forms[id] = {}
|
||||
|
|
Loading…
Reference in a new issue