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