admin
admin copied to clipboard
Hide DeleteButton when API does not expose Delete operation
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?