[mod] add experimental warning for config panel

This commit is contained in:
Laurent Peuch 2018-06-22 04:31:13 +02:00
parent 6fb19edbb3
commit 8a33199d91
2 changed files with 8 additions and 0 deletions

View file

@ -179,6 +179,7 @@
"executing_command": "Executing command '{command:s}'...",
"executing_script": "Executing script '{script:s}'...",
"extracting": "Extracting...",
"experimental_feature": "Warning: this feature is experimental and not consider stable, you shouldn't be using it except if you know what you are doing.",
"field_invalid": "Invalid field '{:s}'",
"firewall_reload_failed": "Unable to reload the firewall",
"firewall_reloaded": "The firewall has been reloaded",

View file

@ -1367,7 +1367,12 @@ def app_change_label(auth, app, new_label):
app_ssowatconf(auth)
# Config panel todo list:
# * docstrings
# * merge translations on the json once the workflow is in place
def app_config_show_panel(app_id):
logger.warning(m18n.n('experimental_feature'))
from yunohost.hook import hook_exec
# this will take care of checking if the app is installed
@ -1447,6 +1452,8 @@ def app_config_show_panel(app_id):
def app_config_apply(app_id, args):
logger.warning(m18n.n('experimental_feature'))
from yunohost.hook import hook_exec
installed = _is_installed(app_id)