From 6fb19edbb3b1dcbf037ad58a83475713a831cc4d Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 18 Jun 2018 04:03:00 +0200 Subject: [PATCH] [enh] send app name and id to config-panel-show --- src/yunohost/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 64806fbcf..32ecff82a 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -1370,10 +1370,8 @@ def app_change_label(auth, app, new_label): def app_config_show_panel(app_id): from yunohost.hook import hook_exec - installed = _is_installed(app_id) - if not installed: - raise MoulinetteError(errno.ENOPKG, - m18n.n('app_not_installed', app=app_id)) + # this will take care of checking if the app is installed + app_info_dict = app_info(app_id) 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') @@ -1442,6 +1440,8 @@ def app_config_show_panel(app_id): option["value"] = option["default"] return { + "app_id": app_id, + "app_name": app_info_dict["name"], "config_panel": config_panel, }