Skip to content
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

[Batch Actions] Give the choice to display or note the confirmation modal #6374

Closed
kinhelm opened this issue Jul 19, 2024 · 1 comment · May be fixed by #6375
Closed

[Batch Actions] Give the choice to display or note the confirmation modal #6374

kinhelm opened this issue Jul 19, 2024 · 1 comment · May be fixed by #6375

Comments

@kinhelm
Copy link

kinhelm commented Jul 19, 2024

By default there is a modal for batch processes (like deletetion).
Add a method to disabled it.

    return $actions
        ->addBatchAction(Action::new('approve', 'Approve Users')
        ->linkToCrudAction('approveUsers')
        ->addCssClass('btn btn-primary')
        ->setIcon('fa fa-user-check')
        ->displayBatchConfirmationModal(false) // <- here
    ;
@javiereguiluz
Copy link
Collaborator

Thanks for this proposal. I'm closing this issue in favor of #6674, which tries to solve this and other closely related issues.

I'll take a look at your PR #6375 to see if we can reuse parts of it. Thanks!

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

Successfully merging a pull request may close this issue.

2 participants