Skip to content

Commit

Permalink
Closes #11968: Add navigation menu buttons to create device & VM comp…
Browse files Browse the repository at this point in the history
…onents
  • Loading branch information
jeremystretch committed Mar 13, 2023
1 parent d1f76be commit 6a696d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions docs/release-notes/version-3.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ A new ASN range model has been introduced to facilitate the provisioning of new
* [#8958](https://github.com/netbox-community/netbox/issues/8958) - Changes in background job status can trigger webhooks
* [#9073](https://github.com/netbox-community/netbox/issues/9073) - Enable syncing config context data from remote sources
* [#9653](https://github.com/netbox-community/netbox/issues/9653) - Enable setting a default platform for device types
* [#10054](https://github.com/netbox-community/netbox/issues/10054) - Introduce advanced object selector for UI forms
* [#10374](https://github.com/netbox-community/netbox/issues/10374) - Require unique tenant names & slugs per group (not globally)
* [#10729](https://github.com/netbox-community/netbox/issues/10729) - Add date & time custom field type
* [#11254](https://github.com/netbox-community/netbox/issues/11254) - Introduce the `X-Request-ID` HTTP header to annotate the unique ID of each request for change logging
Expand All @@ -39,6 +40,7 @@ A new ASN range model has been introduced to facilitate the provisioning of new
* [#11584](https://github.com/netbox-community/netbox/issues/11584) - Add a list view for contact assignments
* [#11625](https://github.com/netbox-community/netbox/issues/11625) - Add HTMX support to ObjectEditView
* [#11693](https://github.com/netbox-community/netbox/issues/11693) - Enable syncing export template content from remote sources
* [#11968](https://github.com/netbox-community/netbox/issues/11968) - Add navigation menu buttons to create device & VM components

### Other Changes

Expand Down
22 changes: 11 additions & 11 deletions netbox/netbox/navigation/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@
MenuGroup(
label=_('Device Components'),
items=(
get_model_item('dcim', 'interface', _('Interfaces'), actions=['import']),
get_model_item('dcim', 'frontport', _('Front Ports'), actions=['import']),
get_model_item('dcim', 'rearport', _('Rear Ports'), actions=['import']),
get_model_item('dcim', 'consoleport', _('Console Ports'), actions=['import']),
get_model_item('dcim', 'consoleserverport', _('Console Server Ports'), actions=['import']),
get_model_item('dcim', 'powerport', _('Power Ports'), actions=['import']),
get_model_item('dcim', 'poweroutlet', _('Power Outlets'), actions=['import']),
get_model_item('dcim', 'modulebay', _('Module Bays'), actions=['import']),
get_model_item('dcim', 'devicebay', _('Device Bays'), actions=['import']),
get_model_item('dcim', 'inventoryitem', _('Inventory Items'), actions=['import']),
get_model_item('dcim', 'interface', _('Interfaces')),
get_model_item('dcim', 'frontport', _('Front Ports')),
get_model_item('dcim', 'rearport', _('Rear Ports')),
get_model_item('dcim', 'consoleport', _('Console Ports')),
get_model_item('dcim', 'consoleserverport', _('Console Server Ports')),
get_model_item('dcim', 'powerport', _('Power Ports')),
get_model_item('dcim', 'poweroutlet', _('Power Outlets')),
get_model_item('dcim', 'modulebay', _('Module Bays')),
get_model_item('dcim', 'devicebay', _('Device Bays')),
get_model_item('dcim', 'inventoryitem', _('Inventory Items')),
get_model_item('dcim', 'inventoryitemrole', _('Inventory Item Roles')),
),
),
Expand Down Expand Up @@ -216,7 +216,7 @@
label=_('Virtual Machines'),
items=(
get_model_item('virtualization', 'virtualmachine', _('Virtual Machines')),
get_model_item('virtualization', 'vminterface', _('Interfaces'), actions=['import']),
get_model_item('virtualization', 'vminterface', _('Interfaces')),
),
),
MenuGroup(
Expand Down

0 comments on commit 6a696d9

Please sign in to comment.