-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
define actions within index_controls and let them be grouped in a actions_list #3135
Comments
class FoobarResource < Avo::BaseResource
def index_controls
action Avo::Actions::BlaBla, arguments: {id: 1}
action Avo::Actions::Haha, arguments: {id: 2}
actions_list label: "lists" # list with all actions from `def actions`
end
def actions
# empty
end
end
We'll investigate it |
|
Yes @pjmuller, check this issue #2784 Ideally something like this: list do
link_to "google", "https://google.com", ...options
action ...options
end |
Thanks for reporting this one @pjmuller. It's fixed on Avo |
Feature
In Avo 3.11 we don't need to define actions anymore in
def actions
and can directly use them indef index_controls
However the following code shows the actions as SEPARATE button and not grouped in the list
doesn't group them, they appear as top level entries
Current workarounds
the old flow does group them
arguments
gets LOST in this way (while they are remembered if defined withinindex_controls
-> first code snippet of this issue)The text was updated successfully, but these errors were encountered: