-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Add the ability to disable/remove an action from Mass(Tree)Action #20881
Add the ability to disable/remove an action from Mass(Tree)Action #20881
Conversation
Hi @Beagon. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @VladimirZaets, thank you for the review. |
Hi @Beagon, thank you for your contribution! |
Description (*)
What: I'm proposing the ability to easily disable/remove an action from Mass(Tree)Action by adding a setting "actionDisable" to actions.
Why: To get this working without this feature I had to overwrite the MassAction UiComponent class in Vendor\Module\view\Area\ui_component with a custom version. Since you can normally disable UiComponents via a disable argument, I thought that it should be just as easy for Mass(Tree)Actions.
Before (Print Invoice is still there):
After:
Manual testing scenarios (*)
Contribution checklist (*)