payload icon indicating copy to clipboard operation
payload copied to clipboard

is there anyway to hide livepreview button conditionally?

Open KBambharoliya opened this issue 1 year ago • 2 comments

Link to reproduction

No response

Describe the Bug

is there anyway to hide live preview button conditionally? i want to hide livepreview button when i have one categoryData null

To Reproduce

Live preview

Payload Version

2.0

Adapters and Plugins

No response

KBambharoliya avatar Dec 12 '24 21:12 KBambharoliya

@KBambharoliya you should be able to use a custom tab component for this, admin.views.Edit.LivePreview.Tab. The exact path here has changed in 3.0, where it's now admin.views.edit.livePreview.tab.Component.

jacobsfletch avatar Dec 16 '24 23:12 jacobsfletch

ok. Thank you for your suggestion!!

KBambharoliya avatar Dec 17 '24 13:12 KBambharoliya

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Dec 19 '24 04:12 github-actions[bot]