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

Open
kinhelm opened this issue Jul 19, 2024 · 0 comments · May be fixed by #6375
Open

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

kinhelm opened this issue Jul 19, 2024 · 0 comments · 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
    ;
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.

1 participant