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?
Solution
I managed to do it with this Relationships in pages
Was this page helpful?