mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] send app name and id to config-panel-show
This commit is contained in:
parent
6a1b8fdfa3
commit
6fb19edbb3
1 changed files with 4 additions and 4 deletions
|
@ -1370,10 +1370,8 @@ def app_change_label(auth, app, new_label):
|
||||||
def app_config_show_panel(app_id):
|
def app_config_show_panel(app_id):
|
||||||
from yunohost.hook import hook_exec
|
from yunohost.hook import hook_exec
|
||||||
|
|
||||||
installed = _is_installed(app_id)
|
# this will take care of checking if the app is installed
|
||||||
if not installed:
|
app_info_dict = app_info(app_id)
|
||||||
raise MoulinetteError(errno.ENOPKG,
|
|
||||||
m18n.n('app_not_installed', app=app_id))
|
|
||||||
|
|
||||||
config_panel = os.path.join(APPS_SETTING_PATH, app_id, 'config_panel.json')
|
config_panel = os.path.join(APPS_SETTING_PATH, app_id, 'config_panel.json')
|
||||||
config_script = os.path.join(APPS_SETTING_PATH, app_id, 'scripts', 'config')
|
config_script = os.path.join(APPS_SETTING_PATH, app_id, 'scripts', 'config')
|
||||||
|
@ -1442,6 +1440,8 @@ def app_config_show_panel(app_id):
|
||||||
option["value"] = option["default"]
|
option["value"] = option["default"]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
"app_id": app_id,
|
||||||
|
"app_name": app_info_dict["name"],
|
||||||
"config_panel": config_panel,
|
"config_panel": config_panel,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue