Skip to content

Commit 00d23a0

Browse files
16725 - The admin section should always come last in the navigation menu (netbox-community#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 <[email protected]>
1 parent c7dcded commit 00d23a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

netbox/netbox/navigation/menu.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -462,16 +462,13 @@
462462
PROVISIONING_MENU,
463463
CUSTOMIZATION_MENU,
464464
OPERATIONS_MENU,
465-
ADMIN_MENU,
466465
]
467466

468-
#
469-
# Add plugin menus
470-
#
471-
467+
# Add top-level plugin menus
472468
for menu in registry['plugins']['menus']:
473469
MENUS.append(menu)
474470

471+
# Add the default "plugins" menu
475472
if registry['plugins']['menu_items']:
476473

477474
# Build the default plugins menu
@@ -485,3 +482,6 @@
485482
groups=groups
486483
)
487484
MENUS.append(plugins_menu)
485+
486+
# Add the admin menu last
487+
MENUS.append(ADMIN_MENU)

0 commit comments

Comments
 (0)