-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[#57817] add deletion action to item action menu #16972
Conversation
- https://community.openproject.org/work_packages/57817 - added dialog component to safe guard item deletion - added controller actions and routes to open dialog and delete item
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small change, since we have the service merged already.
app/controllers/admin/custom_fields/hierarchy/items_controller.rb
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, from my point of view this looks good. I was able to understand things and test it locally so ✔️ 🎉
Just left a comment if you want to overthink things a bit.
app/components/admin/custom_fields/hierarchy/item_component.html.erb
Outdated
Show resolved
Hide resolved
- updated action menu item construction method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was happy before, I'm happier now 👍
Ticket
OP#57817
What are you trying to accomplish?
What approach did you choose and why?