Remove button if MSS is active

[MAILPOET-1435]
This commit is contained in:
Pavel Dohnal
2018-07-10 13:35:12 +01:00
parent a02f909627
commit d670fe27ee
3 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,7 @@ const messages = {
MailPoet.Notice.success(message);
},
onNoItemsFound: (group) => {
if (group === 'bounced' && !window.mailpoet_premium_active) {
if (group === 'bounced' && !window.mailpoet_premium_active && !window.mss_active) {
return (
<div>
<p>{MailPoet.I18n.t('bouncedSubscribersHelp')}</p>

View File

@ -523,6 +523,7 @@ class Menu {
$data['month_names'] = Block\Date::getMonthNames();
$data['premium_plugin_active'] = License::getLicense();
$data['mss_active'] = Bridge::isMPSendingServiceEnabled();
$this->displayPage('subscribers/subscribers.html', $data);
}

View File

@ -10,6 +10,7 @@
var mailpoet_month_names = <%= json_encode(month_names) %>;
var mailpoet_date_formats = <%= json_encode(date_formats) %>;
var mailpoet_premium_active = <%= json_encode(premium_plugin_active) %>;
var mss_active = <%= json_encode(mss_active) %>;
</script>
<% endblock %>