Hide it if WooCommerce or feature is inactive
[MAILPOET-2300]
This commit is contained in:
committed by
Jack Kitterhing
parent
e1ac0babc5
commit
1edc4ed53a
@@ -97,6 +97,10 @@ class NewsletterTypes extends React.Component {
|
||||
|
||||
getAdditionalTypes() {
|
||||
const openWooCommerceCustomizer = this.openWooCommerceCustomizer.bind(this);
|
||||
const show = window.mailpoet_woocommerce_active && MailPoet.FeaturesController.isSupported('wc-transactional-emails-customizer');
|
||||
if (!show) {
|
||||
return [];
|
||||
}
|
||||
return [
|
||||
{
|
||||
slug: 'wc_transactional',
|
||||
|
Reference in New Issue
Block a user