Remove button if MSS is active
[MAILPOET-1435]
This commit is contained in:
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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 %>
|
||||
|
||||
|
Reference in New Issue
Block a user