Skip to content

DataViewTreeViewFilter: Add prop to toggle visibility of "Close label group" button #644

@katarinazaprazna

Description

@katarinazaprazna

Hello,

During a recent PR review, we noticed that the DataViewTreeViewFilter contains an extra button ("Close label group <filter_name>") in the chip toolbar that isn't present in other data-view filters:

Image

I’d like to propose adding a prop (e.g., showDeleteLabelGroup) to control this behavior

It appears that in the ToolbarFilter component, the button's visibility is tied to the presence of the deleteLabelGroup function. If we provide a way to ensure this remains undefined or is explicitly disabled via a prop, the button should remain hidden as expected

Many thanks for considering the change!


Jira Issue: PF-4094

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions