Hey <@492751562872193025> , for any reason, action...
# avo-2
k
Hey @lemon-wall-20836 , for any reason, actions dissapear from menu on show of any resource 😨 and its included in resource
l
Hmm. Bot really
They shoudl be there 😛
Do you mind opening a ticket with some reproduction steps?
k
I dont know what happens, but past week was working fine, and now without modifiying nothing, only we can show in toolbar: - Go Back - Edit - Delete This actions are fixed in all show pages for all resources
But if we add manually like:
Copy code
self.show_controls = -> do
    back_button label: "", title: "Go back now"
    action StudyInviteSamplers, style: :primary, color: :fuchsia, icon: "heroicons/outline/globe"
    edit_button label: ""
    delete_button label: ""
  end
its working
l
Go it. Can you please add a recording on the Gh issue?
And all these details please
One thing comes to mind
when using an action in
show_controls
you should also declare it in the resource below using
action StudyInviteSamplers
show_controls
only adds the button there, it doesn't register the action
we should improve that in future versions
k
Gotcha, i just fixed doing manually the controlls in each resource i need that actions. I hope in future versions will be automatic
l
perfect!
2 Views