Просмотр исходного кода

Closes #11968: Add navigation menu buttons to create device & VM components

jeremystretch 2 лет назад
Родитель
Сommit
6a696d9ed7
2 измененных файлов с 13 добавлено и 11 удалено
  1. 2 0
      docs/release-notes/version-3.5.md
  2. 11 11
      netbox/netbox/navigation/menu.py

+ 2 - 0
docs/release-notes/version-3.5.md

@@ -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
@@ -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
 

+ 11 - 11
netbox/netbox/navigation/menu.py

@@ -78,16 +78,16 @@ DEVICES_MENU = Menu(
         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')),
             ),
         ),
@@ -216,7 +216,7 @@ VIRTUALIZATION_MENU = Menu(
             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(