fix: allow override for Admin menu title
This commit is contained in:
parent
1e3647d27b
commit
a66312b667
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue