Skip to content

ActionsColumn fails to render extra_buttons when actions tuple is empty #16838

Closed
@kprince28

Description

@kprince28

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.
  1. Initialize an ActionsColumn with an empty actions tuple and valid extra_buttons:
actions = columns.ActionsColumn(
    actions=(),
    extra_buttons=ACTIVATE_BUTTON
)
  1. 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.

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions