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
This commit is contained in:
committed by
Aschepikov
parent
669367c9c6
commit
146e1c871f
@ -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);
|
||||
|
@ -22,7 +22,6 @@
|
||||
<input type="button" name="save" value="<%= __('Save') %>" class="button button-primary mailpoet_save_go_to_automation mailpoet_hidden" />
|
||||
{{else if isConfirmationEmailTemplate}}
|
||||
<div class="mailpoet_editor_confirmation_email_section">
|
||||
<input type="button" name="preview" class="button mailpoet_show_preview" value="<%= __('Preview') %>" />
|
||||
<div class="mailpoet_save_button_group">
|
||||
<input type="button" name="save" value="<%= __('Save') %>" class="button button-primary mailpoet_save_button" />
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user