Disable send buttons and endpoints

[MAILPOET-2394]
This commit is contained in:
Amine Ben hammou
2019-11-26 01:59:30 +01:00
committed by Jack Kitterhing
parent 856c870ae5
commit c9052d71d4
5 changed files with 83 additions and 7 deletions

View File

@@ -494,6 +494,7 @@ class NewsletterSend extends React.Component {
type="button"
onClick={this.handleResume}
value={MailPoet.I18n.t('resume')}
disabled={window.mailpoet_subscribers_limit_reached}
/>
)
: (
@@ -503,6 +504,7 @@ class NewsletterSend extends React.Component {
onClick={this.handleSend}
value={MailPoet.I18n.t('send')}
{...sendButtonOptions}
disabled={window.mailpoet_subscribers_limit_reached}
/>
)
}