Add data about form editor tutorial into store

[MAILPOET-3206]
This commit is contained in:
Pavel Dohnal
2020-11-24 11:44:09 +01:00
committed by Veljko V
parent fa3d38219d
commit e52a2af475
6 changed files with 18 additions and 0 deletions

View File

@@ -174,6 +174,12 @@ export default {
getAllWooCommerceTags(state) {
return state.allWooCommerceTags;
},
getTutorialSeen(state) {
return state.tutorialSeen;
},
getTutorialUrl(state) {
return state.tutorialUrl;
},
/**
* Goes thru all parents of the block and return
* the attribute value from the closest parent which has the attribute defined

View File

@@ -84,6 +84,8 @@ export default () => {
allWooCommerceProducts: window.mailpoet_woocommerce_products,
allWooCommerceCategories: window.mailpoet_woocommerce_categories,
allWooCommerceTags: window.mailpoet_woocommerce_tags,
tutorialSeen: window.mailpoet_tutorial_seen,
tutorialUrl: window.mailpoet_tutorial_url,
};
const config = {