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

fix(uve): Hide workflow actions toolbar button when editing a variant #30726 #31001

Conversation

valentinogiardino
Copy link
Contributor

@valentinogiardino valentinogiardino commented Dec 20, 2024

Proposed Changes

  • Conditionally render the <dot-uve-workflow-actions> component in the EditEmaToolbarComponent when isDefaultVariant is true.
  • Update the ToolbarProps model to include the isDefaultVariant property.

Checklist

  • Tests
  • Translations
  • Security Implications Contemplated (add notes if applicable)

Additional Info

The isDefaultVariant property determines whether the current page variant is the default. The <dot-uve-workflow-actions> component is displayed only when this condition is met, preventing errors from triggering workflow actions on variant editing pages.

Slack conversation: https://dotcms.slack.com/archives/CQMHM7PNJ/p1734635875445969

Screenshots

Before

variant-wf-action-error.mp4

After

pr-hide-wf-action-button-variant.mp4

This PR fixes: #30726

@zJaaal
Copy link
Contributor

zJaaal commented Dec 20, 2024

@rjvelazco @KevinDavilaDotCMS we have to port this fix to the new toolbar

Merged via the queue into main with commit 0e70610 Dec 23, 2024
22 checks passed
@valentinogiardino valentinogiardino deleted the issue-30726-error-publishing-a-page-from-variant-editing-bad-request-error branch December 23, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error publishing a page from variant editing: "Bad request error"
4 participants