Skip to content

Hide DeleteButton when API does not expose Delete operation #612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rvanlaak opened this issue Mar 31, 2025 · 0 comments
Open

Hide DeleteButton when API does not expose Delete operation #612

rvanlaak opened this issue Mar 31, 2025 · 0 comments

Comments

@rvanlaak
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant