Add isWoocommerceTransactional() to model
[MAILPOET-2281]
This commit is contained in:
committed by
Jack Kitterhing
parent
1ad5d173f8
commit
2a96ae5f4c
@ -20,6 +20,9 @@ Module.NewsletterModel = SuperModel.extend({
|
|||||||
// doesn't control don't change.
|
// doesn't control don't change.
|
||||||
return _.pick(SuperModel.prototype.toJSON.call(this), this.whitelisted);
|
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
|
// Content block view and model handlers for different content types
|
||||||
|
Reference in New Issue
Block a user