F
Filament5mo 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
RixzZ5mo ago
Prebuilt actions seems to hide based on read only mode, but this doesn’t seem to apply to custom actions
Blackpig
Blackpig5mo 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
RixzZ5mo ago
I already had tried with operation but doesn’t seem to be valid there
RixzZ
RixzZ5mo ago
Thanks either way @Blackpig 🙂