app: Add ability to hide configuration form when app is disabled

- Some apps store their configuration in database. The database server may not
be running when app is disabled. Configuration changes may then not be
possible for such apps. Provide the ability to disable configuration for apps
that don't support configuration changes when disabled.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2024-03-11 16:50:14 -04:00
1 parent 717e8cd7f5
commit 524fdf6049
3 files changed
+14

No files matched your search

+3
View File
@@ -67,6 +67,9 @@ def test_app_instantiation():
assert app.app_id == 'test-app'
assert app._all_apps['test-app'] == app
assert len(app._all_apps) == 1
assert app.can_be_disabled
assert not app.locked
assert app.configure_when_disabled
def test_app_get():