Skip to content

Conversation

@sudheesh001
Copy link
Contributor

Fixes: #12847

  • Includes missing Add button in Views for Device Components
  • Includes missing Add button in Views for Virtualization > Interfaces

filterset_form = forms.ConsolePortFilterForm
table = tables.ConsolePortTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ActionsMixin sets this list by default, so we can instead just remove the definition for actions from each view.

class ActionsMixin:
    actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')
Suggested change
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')

@sudheesh001 sudheesh001 force-pushed the fix/12847-include-adds branch from a1b7120 to c5f71c0 Compare June 14, 2023 17:06
@sudheesh001
Copy link
Contributor Author

Thanks for the review @jeremystretch I just updated the PR based on your feedback. Please let me know if this would be a better patch.

@jeremystretch
Copy link
Member

That'll work, thanks!

@jeremystretch jeremystretch merged commit f7b0e48 into netbox-community:develop Jun 14, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include "add" button on page heading for virtual machine interfaces list

2 participants