-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(uve): Hide workflow actions toolbar button when editing a variant #…
…30726 (#31001) ### 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 - [x] Tests - [x] Translations - [x] 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 https://github.com/user-attachments/assets/f1d938e7-4dca-4fd4-a7aa-89872bb15be9 #### After https://github.com/user-attachments/assets/b8d0a20a-04de-4e51-acd8-59b766198255
- Loading branch information
1 parent
cbdbf73
commit 0e70610
Showing
5 changed files
with
79 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters