From a66312b6677d33ee827d8b486ff7ec494fae333c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 24 Jan 2025 20:07:33 -0600 Subject: [PATCH] fix: allow override for Admin menu title --- src/wuttaweb/menus.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wuttaweb/menus.py b/src/wuttaweb/menus.py index ae3745f..3445659 100644 --- a/src/wuttaweb/menus.py +++ b/src/wuttaweb/menus.py @@ -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, }