mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
api: Fix regression with listing only enabled apps in mobile app
Closes: #1626 Tests: - List apps in mobile app front page. Observe that all apps are shown including disabled apps. - With the patch, observer that only enabled apps are shown. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
173d3464b0
commit
03dcaa57da
@ -54,7 +54,7 @@ def get_shortcuts_as_json(username=None):
|
||||
shortcuts = [
|
||||
_get_shortcut_data(shortcut)
|
||||
for shortcut in frontpage.Shortcut.list(username)
|
||||
if shortcut.component_id
|
||||
if shortcut.component_id and shortcut.is_enabled()
|
||||
]
|
||||
custom_shortcuts = frontpage.get_custom_shortcuts()
|
||||
if custom_shortcuts:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user