Hide success notice when unauthorized address notice is shown
[MAILPOET-1787]
This commit is contained in:
@ -392,6 +392,7 @@ const StatisticsMixin = {
|
||||
const MailerMixin = {
|
||||
checkMailerStatus: function checkMailerStatus(state) {
|
||||
if (state.meta.mta_log.error && state.meta.mta_log.error.operation === 'authorization') {
|
||||
MailPoet.Notice.hide('mailpoet_notice_being_sent');
|
||||
MailPoet.Notice.error(
|
||||
state.meta.mta_log.error.error_message,
|
||||
{ static: true, id: 'mailpoet_authorization_error' }
|
||||
|
@ -184,7 +184,8 @@ const NewsletterSend = createReactClass({ // eslint-disable-line react/prefer-es
|
||||
});
|
||||
} else {
|
||||
MailPoet.Notice.success(
|
||||
MailPoet.I18n.t('newsletterBeingSent')
|
||||
MailPoet.I18n.t('newsletterBeingSent'),
|
||||
{ id: 'mailpoet_notice_being_sent' }
|
||||
);
|
||||
MailPoet.trackEvent('Emails > Newsletter sent', {
|
||||
scheduled: false,
|
||||
|
Reference in New Issue
Block a user