[MAILPOET-1263] Force user to create ALC block for post notification

This commit is contained in:
Rostislav Wolny
2018-02-13 21:27:44 +01:00
parent f9204f289f
commit 9d4f996a6a
3 changed files with 45 additions and 0 deletions

View File

@@ -305,6 +305,13 @@ define([
return;
}
if ((App.getNewsletter().get('type') === 'notification') &&
contents.indexOf('automatedLatestContent') < 0
) {
this.showValidationError(MailPoet.I18n.t('automatedLatestContentMissing'));
return;
}
this.hideValidationError();
},
showValidationError: function (message) {