context_processors: Stop adding unused 'submenu' to context

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2024-10-15 16:35:10 -07:00
parent 079b4324f6
commit 44aab658ed
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 0 additions and 4 deletions

View File

@ -32,7 +32,6 @@ def common(request):
] # Ignore the first two slashes '/plinth/apps/'
return {
'cfg': cfg,
'submenu': menu.main_menu.active_item(request),
'active_menu_urls': active_menu_urls,
'box_name': _(cfg.box_name),
'user_is_admin': is_user_admin(request, True),

View File

@ -36,9 +36,6 @@ def test_common(Notification, load_cfg):
assert response['box_name'] == 'FreedomBox'
submenu = response['submenu']
assert submenu is None
urls = response['active_menu_urls']
assert urls is not None
assert ['/plinth/aaa/', '/plinth/aaa/bbb/', '/plinth/aaa/bbb/ccc/'] == urls