3
0
Fork 0

fix: allow override for Admin menu title

This commit is contained in:
Lance Edgar 2025-01-24 20:07:33 -06:00
parent 1e3647d27b
commit a66312b667

View file

@ -143,6 +143,8 @@ class MenuHandler(GenericHandler):
which will ultimately be one element of the final list of
dicts as described in :class:`MenuHandler`.
:param title: Override the menu title; default is "Admin".
:param include_people: You can pass this flag to indicate the
admin menu should contain an entry for the "People" view.
"""
@ -198,7 +200,7 @@ class MenuHandler(GenericHandler):
])
return {
'title': "Admin",
'title': kwargs.get('title', "Admin"),
'type': 'menu',
'items': items,
}