mirror of
https://github.com/strapi/strapi.git
synced 2025-11-15 17:49:57 +00:00
fixed getTrad
This commit is contained in:
parent
19c2d20388
commit
0b9cb955fa
@ -56,7 +56,7 @@ const AdvancedSettingsPage = () => {
|
|||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
notifyStatus(
|
notifyStatus(
|
||||||
formatMessage({
|
formatMessage({
|
||||||
id: 'Form.advancedSettings.data.loaded',
|
id: getTrad('Form.advancedSettings.data.loaded'),
|
||||||
defaultMessage: 'Advanced settings data has been loaded',
|
defaultMessage: 'Advanced settings data has been loaded',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -64,7 +64,7 @@ const AdvancedSettingsPage = () => {
|
|||||||
onError: () => {
|
onError: () => {
|
||||||
toggleNotification({
|
toggleNotification({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: { id: 'notification.error', defaultMessage: 'An error occured' },
|
message: { id: getTrad('notification.error'), defaultMessage: 'An error occured' },
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -76,7 +76,7 @@ const AdvancedSettingsPage = () => {
|
|||||||
await queryClient.invalidateQueries('advanced');
|
await queryClient.invalidateQueries('advanced');
|
||||||
toggleNotification({
|
toggleNotification({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: { id: 'notification.success.saved', defaultMessage: 'Saved' },
|
message: { id: getTrad('notification.success.saved'), defaultMessage: 'Saved' },
|
||||||
});
|
});
|
||||||
|
|
||||||
unlockApp();
|
unlockApp();
|
||||||
@ -84,7 +84,7 @@ const AdvancedSettingsPage = () => {
|
|||||||
onError: () => {
|
onError: () => {
|
||||||
toggleNotification({
|
toggleNotification({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: { id: 'notification.error', defaultMessage: 'An error occured' },
|
message: { id: getTrad('notification.error'), defaultMessage: 'An error occured' },
|
||||||
});
|
});
|
||||||
unlockApp();
|
unlockApp();
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user