app config panel: Add supports_config_panel in app_info for webadmin

This commit is contained in:
Alexandre Aubin 2021-09-19 01:56:53 +02:00
parent 76bd3a6f83
commit 52b3cb5622

View file

@ -235,6 +235,9 @@ def app_info(app, full=False):
ret["supports_multi_instance"] = is_true( ret["supports_multi_instance"] = is_true(
local_manifest.get("multi_instance", False) local_manifest.get("multi_instance", False)
) )
ret["supports_config_panel"] = os.path.exists(
os.path.join(setting_path, "config_panel.toml")
)
ret["permissions"] = permissions ret["permissions"] = permissions
ret["label"] = permissions.get(app + ".main", {}).get("label") ret["label"] = permissions.get(app + ".main", {}).get("label")