Skip to content

Delete button cannot be hidden/conditionally displayed in Edit toolbar  #2319

Description

@kctrlv

What you were expecting:
Being able to override the DeleteButton showing in the toolbar based on permissions.

What happened instead:
The DeleteButton is hardcoded into the toolbar after the span, there is no way to remove or conditionally display it.

Steps to reproduce:
Spin up any edit page that has a resource ID and note that the DeleteButton is on the lower right. Attempting to make your own custom toolbar with conditional logic to display the buttons will not override the hardcoded DeleteButton that comes with it.

Related code:
Toolbar.js Lines 94-100

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions