Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there anyway to hide livepreview button conditionally? #9947

Closed
KBambharoliya opened this issue Dec 12, 2024 · 3 comments
Closed

is there anyway to hide livepreview button conditionally? #9947

KBambharoliya opened this issue Dec 12, 2024 · 3 comments
Labels

Comments

@KBambharoliya
Copy link

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 KBambharoliya added status: needs-triage Possible bug which hasn't been reproduced yet v2 labels Dec 12, 2024
@jacobsfletch
Copy link
Member

@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.

@KBambharoliya
Copy link
Author

ok. Thank you for your suggestion!!

Copy link
Contributor

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants