Remove all success delivery polls

[MAILPOET-2596]
This commit is contained in:
Ján Mikláš
2020-01-23 10:14:43 +01:00
committed by Jack Kitterhing
parent 3222ec4e16
commit b287a6e609
10 changed files with 0 additions and 145 deletions

View File

@ -335,7 +335,6 @@ Module.SidebarPreviewView = Marionette.View.extend({
CommunicationComponent.previewNewsletter(data).always(function () {
MailPoet.Modal.loading(false);
}).done(function () {
var showSuccessDeliveryPoll;
MailPoet.Notice.success(
MailPoet.I18n.t('newsletterPreviewSent'),
{ scroll: true }
@ -347,11 +346,6 @@ Module.SidebarPreviewView = Marionette.View.extend({
if (App.getConfig().get('validation.validateSPFRecord')) {
checkSPFRecord();
}
showSuccessDeliveryPoll = MailPoet.Poll.successDelivery.canShow('preview');
if (showSuccessDeliveryPoll) {
MailPoet.Poll.successDelivery.showModal('preview', 'IHedf1');
MailPoet.Poll.successDelivery.setPollShown('preview');
}
}).fail(function (response) {
if (response.errors.length > 0) {
MailPoet.Notice.error(