Update notice text when saving template or global styles

The code triggers the same notice for changes in a template or changes in global styles.
This commit makes the text of the notice more generic to work for both.
[MAILPOET-6335]
This commit is contained in:
Rostislav Wolny
2024-12-12 12:41:56 +01:00
committed by Aschepikov
parent 7f61415a39
commit 6472021359

View File

@@ -19,7 +19,7 @@ export function EditorSnackbars( { context = 'email-editor' } ) {
const globalNoticeChangeMap = useMemo( () => {
return {
'site-editor-save-success': {
content: __( 'Template updated.', 'mailpoet' ),
content: __( 'Email design updated.', 'mailpoet' ),
removeActions: true,
},
};