-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Command Tool: Fix contextual commands selectors #50829
Conversation
Size Change: +3 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Flaky tests detected in 6f98457. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5043778257
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before
before.mp4
After
after.mp4
🚀
related #48457
What?
This PR fixes a small bug where the initial "context" persists. In other words, if you load the site editor in "edit" mode, the "revert template" command is always shown even if you leave the mode (go to view mode). The opposite is true, it's never shown if you open the editor in "view mode".
Testing Instructions
1- Have a modified saved template
2- Open the editor and check that the "revert template" command is visible when open the command center in "edit" mode but not "view" mode without refreshing the page between the mode switch.