-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[ Navigation Screen ] adds notifications base system #22326
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
Conversation
- adds a sample notification for saving menus - fixes a empty menu items crashing the menu page
|
Size Change: +190 B (0%) Total Size: 832 kB
ℹ️ View Unchanged
|
| createSuccessNotice( __( 'Navigation saved.' ), { | ||
| type: 'snackbar', | ||
| } ); |
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.
In my testing this displays immediately instead of waiting for a successful save as this is a synchronous function. As mentioned in #21344, it's really hard to tell when a save has completed.
Lets merge anyway, but keep the issue open. I know there are other PRs like #22148 that would change this completely, so probably good to see some progress around that first.
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.
Yes, I think so as well, wrote in the description "Advances #21344" :) so we don't close it. We need more PRs for the other notifications as well (like location editing).
Thanks for reviewing and merging! 🙇
Advances #21344
Description
Adds the base needed to enable notifications on the navigation screen.
How has this been tested?
I added a sample notification for saving menus.
Screenshots
Types of changes
Non breaking changes.
Also fixes a bug in master with empty menus, apparently brought by #21671