Skip to content

Hide DeleteButton when API does not expose Delete operation #612

Description

@rvanlaak

Description

For many of my resources, I've overridden the ApiResource operations to not include the Delete operation.

The Api Platform React Admin resource edit form still shows the DeleteButton at the right bottom though.

Yes, I can manually override the form and exclude it, but it would be great if the DeleteButton would get hidden if the API does not expose a Delete operation.

This could possibly apply to other operations (e.g. Post, Put?) as well?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions