You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't configured any showOnPreview() fields, so all my resources have no information in the "Preview" popup. There should be a way to disable this button. Either it counts if there are any preview fields – no fields, button isn't shown – or it can be disabled using policies.
Looking through the code, you can disable this button if you disable the ability to view a resource. I don't want to disable this completely, only the preview.
There should be a policy method called preview() which can be configured to disable this button. This new method could default to the view() method if not present. This is like the replicate functionality, which defaults to using the update() check if the specific replicate() method doesn't exist.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I haven't configured any
showOnPreview()
fields, so all my resources have no information in the "Preview" popup. There should be a way to disable this button. Either it counts if there are any preview fields – no fields, button isn't shown – or it can be disabled using policies.Looking through the code, you can disable this button if you disable the ability to view a resource. I don't want to disable this completely, only the preview.
There should be a policy method called
preview()
which can be configured to disable this button. This new method could default to theview()
method if not present. This is like the replicate functionality, which defaults to using theupdate()
check if the specificreplicate()
method doesn't exist.Beta Was this translation helpful? Give feedback.
All reactions