Change corrupted newsletter notice to a static (dismissable) one

This commit is contained in:
Tautvidas Sipavičius
2017-02-16 11:21:01 +02:00
parent f86121b656
commit a40d1122a5
2 changed files with 5 additions and 2 deletions

View File

@@ -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});

View File

@@ -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 %>