mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
717e8cd7f5
commit
524fdf6049
3 files changed
+14
No files matched your search
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user