EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Allow to ask confirmation in custom actions and disable it in batch actions

Open javiereguiluz opened this issue 1 year ago • 1 comments

Batch actions display a confirmation message in a model windows because they can be "dangerous" (e.g. delete lots of items at once, publish/unpublish lots of items at once, etc.) But some folks prefer to not have that confirmation for some batch actions. Let's add a method to disable this default behavior.

Related to this, custom actions never display a confirmation dialog, but some of those can be destructive or dangerous. So, let's add a method for actions to ask for a confirmation.

While we do this, maybe we can redesign the current behavior based on a sliding down modal and display the message similar to what macOS or Windows do when asking for permission to users.

javiereguiluz avatar Dec 30 '24 20:12 javiereguiluz

Is there some workaround for disable popup on batch action?

Blochin avatar Mar 20 '25 13:03 Blochin

Hello, I'm taking the liberty of relaunching this topic, as I'm encountering a similar problem. I want to use a custom modal on a batch action, as I can with a global action. My aim is to select an item on the modal from a list before confirmation. But whatever I do, the default modal overrides my custom modal. So for my part, I'd love to be able to disable the batch action confirmation modal, and have the option of using my own modal.

Ordwen avatar Jun 30 '25 12:06 Ordwen