mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
configpanel: quickly update list_actions
This commit is contained in:
parent
15c827908f
commit
25ccbd5f78
1 changed files with 6 additions and 6 deletions
|
@ -470,12 +470,12 @@ class ConfigPanel:
|
||||||
|
|
||||||
# FIXME : meh, loading the entire config panel is again going to cause
|
# FIXME : meh, loading the entire config panel is again going to cause
|
||||||
# stupid issues for domain (e.g loading registrar stuff when willing to just list available actions ...)
|
# stupid issues for domain (e.g loading registrar stuff when willing to just list available actions ...)
|
||||||
self.filter_key = ""
|
self.config, self.form = self._get_config_panel()
|
||||||
self._get_config_panel()
|
|
||||||
for panel, section, option in self._iterate():
|
for panel, section, option in self.config.iter_children():
|
||||||
if option["type"] == OptionType.button:
|
if option.type == OptionType.button:
|
||||||
key = f"{panel['id']}.{section['id']}.{option['id']}"
|
key = f"{panel.id}.{section.id}.{option.id}"
|
||||||
actions[key] = _value_for_locale(option["ask"])
|
actions[key] = _value_for_locale(option.ask)
|
||||||
|
|
||||||
return actions
|
return actions
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue