From 146e1c871f7a7519a87b5412d4a8d95ee5687bcd Mon Sep 17 00:00:00 2001 From: Oluwaseun Olorunsola Date: Wed, 14 Dec 2022 09:34:50 +0100 Subject: [PATCH] Remove preview button The preview button is a nice addition to the confirmation email template, but it's currently not part of the Jira ticket spec. MAILPOET-4649 --- .../js/src/newsletter_editor/components/save.js | 12 ------------ .../views/newsletter/templates/components/save.hbs | 1 - 2 files changed, 13 deletions(-) diff --git a/mailpoet/assets/js/src/newsletter_editor/components/save.js b/mailpoet/assets/js/src/newsletter_editor/components/save.js index b57afce898..ab566a109b 100644 --- a/mailpoet/assets/js/src/newsletter_editor/components/save.js +++ b/mailpoet/assets/js/src/newsletter_editor/components/save.js @@ -646,18 +646,6 @@ Module.NewsletterPreviewView = Marionette.View.extend({ return false; } - // don't send preview if activation_link is missing - if ( - App.getConfig().get('validation.validateActivationLinkIsPresent') && - $('.mailpoet_save_button').hasClass('button-disabled') - ) { - MailPoet.Notice.error(MailPoet.I18n.t('activationLinkIsMissing'), { - positionAfter: $emailField, - scroll: true, - }); - return false; - } - this.model.set('previewSendingError', false); this.model.set('previewSendingSuccess', false); this.model.set('sendingPreview', true); diff --git a/mailpoet/views/newsletter/templates/components/save.hbs b/mailpoet/views/newsletter/templates/components/save.hbs index ce43a17a07..b84c778d35 100644 --- a/mailpoet/views/newsletter/templates/components/save.hbs +++ b/mailpoet/views/newsletter/templates/components/save.hbs @@ -22,7 +22,6 @@ {{else if isConfirmationEmailTemplate}}
-