Display a specific error message for banned users

[MAILPOET-3667]
This commit is contained in:
Jan Lysý
2021-09-11 12:15:17 +02:00
committed by Veljko V
parent 2619f9cdda
commit 7f15fce246
4 changed files with 66 additions and 13 deletions

View File

@@ -73,6 +73,28 @@ const MailerError = (props) => {
() => <br key={`br-${brKey++}`} /> // eslint-disable-line no-plusplus
);
if (props.mta_log.error.operation === 'insufficient_privileges') {
return (
<div className="mailpoet_notice notice notice-error">
<p>
{ message }
</p>
<p>
<a
href="#"
className="button button-primary"
onClick={(event) => {
event.preventDefault();
resumeMailerSending(event);
}}
>
{ MailPoet.I18n.t('mailerResumeSendingAfterUpgradeButton') }
</a>
</p>
</div>
);
}
return (
<div className="mailpoet_notice notice notice-error">
<p>