Cannot access $livewire in Action->hidden() closure

I would like to conditionally hide an action table depending if it's render on a page or a relation manager. I thought I could access the $livewire and make a decision there but I guess it's not possible. Any ideas ? πŸ™‚
5 Replies
Patrick Boivin
Patrick Boivinβ€’2y ago
Can you replicate this issue with a regular Action (not AttachAction)?
Dennis Koch
Dennis Kochβ€’2y ago
What if you use $table directly and don’t pass it to the Resource table?
lamberttraccard
lamberttraccardOPβ€’2y ago
I tried with an edit action same thing 😒 Same it doesn't work. I think it is suppose to work since the $livewire is injected, I will post a github issue in the next few days.
Patrick Boivin
Patrick Boivinβ€’2y ago
Yeah, I did a quick test on my end and it worked for me on a Resource table. The only difference is you're on a Relation Manager but I feel like it shouldn't make a difference here.
lamberttraccard
lamberttraccardOPβ€’2y ago
Thanks for the investigation πŸ˜‰

Did you find this page helpful?