Add WooCommerce templates category

[MAILPOET-1480]
This commit is contained in:
Pavel Dohnal
2018-09-11 15:32:15 +02:00
parent 7d98de521d
commit 41880f72fd
2 changed files with 6 additions and 1 deletions

View File

@@ -24,6 +24,10 @@ const templatesCategories = [
name: 'notification', name: 'notification',
label: MailPoet.I18n.t('tabNotificationTitle'), label: MailPoet.I18n.t('tabNotificationTitle'),
}, },
{
name: 'woocommerce',
label: MailPoet.I18n.t('tabWoocommerceTitle'),
},
{ {
name: 'sample', name: 'sample',
label: MailPoet.I18n.t('sample'), label: MailPoet.I18n.t('sample'),
@@ -70,7 +74,7 @@ class NewsletterTemplates extends React.Component {
{ {
name: name:
MailPoet.I18n.t('mailpoetGuideTemplateTitle'), MailPoet.I18n.t('mailpoetGuideTemplateTitle'),
categories: '["welcome", "notification", "standard"]', categories: '["welcome", "notification", "standard", "woocommerce"]',
readonly: '1', readonly: '1',
}, },
]; ];

View File

@@ -29,6 +29,7 @@
'tabStandardTitle': __('Newsletters'), 'tabStandardTitle': __('Newsletters'),
'tabWelcomeTitle': __('Welcome Emails'), 'tabWelcomeTitle': __('Welcome Emails'),
'tabNotificationTitle': __('Post Notifications'), 'tabNotificationTitle': __('Post Notifications'),
'tabWoocommerceTitle': __('WooCommerce Emails'),
'searchLabel': __('Search'), 'searchLabel': __('Search'),
'loadingItems': __('Loading emails...'), 'loadingItems': __('Loading emails...'),