Add isWoocommerceTransactional() to model

[MAILPOET-2281]
This commit is contained in:
Amine Ben hammou
2019-09-24 22:51:43 +01:00
committed by Jack Kitterhing
parent 1ad5d173f8
commit 2a96ae5f4c

View File

@ -20,6 +20,9 @@ Module.NewsletterModel = SuperModel.extend({
// doesn't control don't change.
return _.pick(SuperModel.prototype.toJSON.call(this), this.whitelisted);
},
isWoocommerceTransactional: function isWoocommerceTransactional() {
return this.get('type') === 'wc_transactional';
},
});
// Content block view and model handlers for different content types