Change corrupted newsletter notice to a static (dismissable) one
This commit is contained in:
@@ -85,7 +85,10 @@ define([
|
||||
var content = (_.has(body, 'content')) ? body.content : {};
|
||||
|
||||
if (!_.has(options.newsletter, 'body') || !_.isObject(options.newsletter.body)) {
|
||||
MailPoet.Notice.error(MailPoet.I18n.t('newsletterBodyIsCorrupted'));
|
||||
MailPoet.Notice.error(
|
||||
MailPoet.I18n.t('newsletterBodyIsCorrupted'),
|
||||
{ static: true }
|
||||
);
|
||||
}
|
||||
|
||||
App._contentContainer = new (App.getBlockTypeModel('container'))(content, {parse: true});
|
||||
|
@@ -333,7 +333,7 @@
|
||||
'noPostsToDisplay': __('There is no content to display.'),
|
||||
'previewShouldOpenInNewTab': __('Your preview should open in a new tab. Please ensure your browser is not blocking popups from this page.'),
|
||||
'newsletterPreview': __('Newsletter Preview'),
|
||||
'newsletterBodyIsCorrupted': __('Contents of this newsletter are corrupted, you may need to add new content to this newsletter, or create a new one. If possible, please contact us and report this issue.'),
|
||||
'newsletterBodyIsCorrupted': __('Contents of this newsletter are corrupted and may be lost, you may need to add new content to this newsletter, or create a new one. If possible, please contact us and report this issue.'),
|
||||
}) %>
|
||||
<% endblock %>
|
||||
|
||||
|
Reference in New Issue
Block a user