admin icon indicating copy to clipboard operation
admin copied to clipboard

Hide DeleteButton when API does not expose Delete operation

Open rvanlaak opened this issue 9 months ago • 0 comments

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?

rvanlaak avatar Mar 31 '25 13:03 rvanlaak