From 0edb6a121929a5c01eca1637197fef2c37bf3b5f Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 7 Mar 2024 18:00:21 -0800 Subject: [PATCH] zoph: Hide configuration form when app is disabled - MySQL server may be disabled when zoph is disabled. Trying to retrieve configuration or trying to set the configuration at the time will result in failures. So, disable the configuration form so that get/set of configuration does not happen. Tests: - Disable zoph. Configuration form will disappear. Re-enable zoph, configuration form will reappear. - Functional tests for zoph pass. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/zoph/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plinth/modules/zoph/__init__.py b/plinth/modules/zoph/__init__.py index b5bbd75f0..0d2c6a6a4 100644 --- a/plinth/modules/zoph/__init__.py +++ b/plinth/modules/zoph/__init__.py @@ -46,6 +46,8 @@ class ZophApp(app_module.App): _version = 2 + configure_when_disabled = False + def __init__(self) -> None: """Create components for the app.""" super().__init__()