Closed
Description
Deployment Type
Self-hosted
NetBox Version
v4.0.7
Python Version
3.12
Steps to Reproduce
- Created a table. In this table, there's a feature to show extra buttons next to each row. However, I noticed that these extra buttons don't show up when I set another feature called "actions" to an empty list.
- Initialize an
ActionsColumn
with an emptyactions
tuple and validextra_buttons
:
actions = columns.ActionsColumn(
actions=(),
extra_buttons=ACTIVATE_BUTTON
)
- Render the table and observe the output.
Expected Behavior
The extra buttons should render correctly even when the actions parameter is empty.
Observed Behavior
When I explicitly set actions to an empty tuple (actions=()), the extra buttons (ACTIVATE_BUTTON) do not appear. They only show up when actions are not defined at all or are set differently.