File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1010,7 +1010,11 @@ export const notificationsExtrasRoute = createRoute( {
10101010 } ) ,
10111011 getParentRoute : ( ) => notificationsRoute ,
10121012 path : '/extras' ,
1013- loader : ( ) => queryClient . ensureQueryData ( userNotificationsSettingsQuery ( ) ) ,
1013+ loader : ( ) =>
1014+ Promise . all ( [
1015+ queryClient . ensureQueryData ( userNotificationsSettingsQuery ( ) ) ,
1016+ queryClient . ensureQueryData ( rawUserPreferencesQuery ( ) ) ,
1017+ ] ) ,
10141018} ) . lazy ( ( ) =>
10151019 import ( '../../me/notifications-extras' ) . then ( ( d ) =>
10161020 createLazyRoute ( 'notifications-extras' ) ( {
Original file line number Diff line number Diff line change @@ -34,9 +34,13 @@ export const AchievementsCard = () => {
3434 ) ;
3535 } ,
3636 onError : ( ) => {
37- createErrorNotice ( __ ( 'There was a problem saving your changes. Please, try again.' ) , {
38- type : 'snackbar' ,
39- } ) ;
37+ createErrorNotice (
38+ sprintf (
39+ /* translators: %s is the name of the setting */ __ ( 'Failed to save %s settings.' ) ,
40+ __ ( 'Achievements' )
41+ ) ,
42+ { type : 'snackbar' }
43+ ) ;
4044 } ,
4145 } ) ;
4246 } ;
Original file line number Diff line number Diff line change @@ -41,9 +41,13 @@ export const OnThisDayCard = () => {
4141 ) ;
4242 } ,
4343 onError : ( ) => {
44- createErrorNotice ( __ ( 'There was a problem saving your changes. Please, try again.' ) , {
45- type : 'snackbar' ,
46- } ) ;
44+ createErrorNotice (
45+ sprintf (
46+ /* translators: %s is the name of the setting */ __ ( 'Failed to save %s settings.' ) ,
47+ __ ( 'On this day' )
48+ ) ,
49+ { type : 'snackbar' }
50+ ) ;
4751 } ,
4852 }
4953 ) ;
You can’t perform that action at this time.
0 commit comments