mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
16725 - The admin section should always come last in the navigation menu (#16762)
* I replaced `append` with `insert` into menu.py to make the admin section appear last in the navigation menu. * Clean up ordering logic --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
parent
c7dcded74f
commit
00d23a0cff
@ -462,16 +462,13 @@ MENUS = [
|
|||||||
PROVISIONING_MENU,
|
PROVISIONING_MENU,
|
||||||
CUSTOMIZATION_MENU,
|
CUSTOMIZATION_MENU,
|
||||||
OPERATIONS_MENU,
|
OPERATIONS_MENU,
|
||||||
ADMIN_MENU,
|
|
||||||
]
|
]
|
||||||
|
|
||||||
#
|
# Add top-level plugin menus
|
||||||
# Add plugin menus
|
|
||||||
#
|
|
||||||
|
|
||||||
for menu in registry['plugins']['menus']:
|
for menu in registry['plugins']['menus']:
|
||||||
MENUS.append(menu)
|
MENUS.append(menu)
|
||||||
|
|
||||||
|
# Add the default "plugins" menu
|
||||||
if registry['plugins']['menu_items']:
|
if registry['plugins']['menu_items']:
|
||||||
|
|
||||||
# Build the default plugins menu
|
# Build the default plugins menu
|
||||||
@ -485,3 +482,6 @@ if registry['plugins']['menu_items']:
|
|||||||
groups=groups
|
groups=groups
|
||||||
)
|
)
|
||||||
MENUS.append(plugins_menu)
|
MENUS.append(plugins_menu)
|
||||||
|
|
||||||
|
# Add the admin menu last
|
||||||
|
MENUS.append(ADMIN_MENU)
|
||||||
|
Loading…
Reference in New Issue
Block a user