Skip to content
Snippets Groups Projects
Commit 381351eb authored by Anders Harrisson's avatar Anders Harrisson
Browse files

Remove 'color' from PluginMenuButton

parent 2b99cc85
No related branches found
No related tags found
1 merge request!21Move to NetBox 4.x
from extras.plugins import PluginMenuButton, PluginMenuItem
from utilities.choices import ButtonColorChoices
plugin_buttons = [
PluginMenuButton(
link="plugins:netbox_awx_plugin:awx_add",
title="Add",
icon_class="mdi mdi-plus-thick",
color=ButtonColorChoices.GREEN,
permissions=['netbox_awx_plugin.add_awx'], # Add permission for adding AWX
)
]
......@@ -16,7 +14,6 @@ awxinventory_buttons = [
link="plugins:netbox_awx_plugin:awxinventory_add",
title="Add inventory",
icon_class="mdi mdi-plus-thick",
color=ButtonColorChoices.GREEN,
permissions=['netbox_awx_plugin.add_awxinventory'], # Add permission for adding AWX Inventory
)
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment