Why doesn't model injection work for ActionGroup?

For instance, if I have a simple action like
Tables\Actions\Action::make('status_done')
->visible(fn (Order $record): bool => $record->some_value
Tables\Actions\Action::make('status_done')
->visible(fn (Order $record): bool => $record->some_value
then the record model is injected in the clojure. The problem is that when I have an ActionGroup, the same thing doesn't work. I'm trying to limit queries by doing the visibility verification in an actiongroup instead of each individual action. Is there something I'm missing here?
2 Replies
Rizky Anfasa F M
Do u want to limit query from table action?
Fally
FallyOP2y ago
What i’m looking for is for a way to do less queries per row, so i’m either looking to be able to inject model in ActionGroup or someway for me to prepare some info per row and use it in the actions
Want results from more Discord servers?
Add your server