F
Filament10mo ago
RixzZ

Hide row action in Relation Manager shown in view page

I have a Relation Manager that appears in view and edit pages. Prebuilt actions are only shown in the edit page as it should, but after adding a custom action to the RM, this one is shown in both view and edit pages. How can I hide it in the view page?
5 Replies
RixzZ
RixzZOP10mo ago
Prebuilt actions seems to hide based on read only mode, but this doesn’t seem to apply to custom actions
Blackpig
Blackpig10mo ago
Post your action code. You should be able to pass a closure to the ->hidden() method - not sure whether it will accept the$operation to test against or the Page $page to check against
RixzZ
RixzZOP10mo ago
I already had tried with operation but doesn’t seem to be valid there
RixzZ
RixzZOP10mo ago
Thanks either way @Blackpig 🙂
Want results from more Discord servers?
Add your server