PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 2.8.16
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v2.8.16
3.13.3 3.13.2 3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 2.8.16 All 261 releases
wpfunnels / admin / modules / setup-wizard / components / Automation.vue

Automation.vue in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 2.8.16, at admin/modules/setup-wizard/components/Automation.vue

103 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <template>
2 <div class="wizard-single-content funnel-type">
3 <div class="step-header">
4 <h4 class="title">Email Automation</h4>
5 <p class="description">You may choose to manage your leads and run email marketing automation flows using our own plugin, Mail Mint.</p>
6 </div>
7
8 <div class="wizard-single-content__body">
9
10
11 <div class="wpfnl-field-wrapper">
12 <div class="wpfnl-fields">
13 <span class="wpfnl-checkbox no-title" v-if="'yes' !== isMrmActive">
14 <input type="checkbox" name="install-mrm" v-model="isIstallMailMint" id="install-mrm" @change="isPermitted"/>
15 <label for="install-mrm"></label>
16 </span>
17 <label>
18 {{ getLabelMrm }}
19 <span class="wpfnl-tooltip">
20
21 <p>Enable to install MailMint</p>
22 </span>
23 </label>
24 </div>
25
26 <p class="hints">
27 Effortless email marketing automation tool to collect & manage leads, run email campaigns, and initiate basic email automation.
28 </p>
29 </div>
30 </div>
31
32 <div class="wizard-single-content__footer">
33 <a :href="prevStepLink" class="wizard-btn btn-default prev">previous</a>
34 <a href="#" class="wizard-btn btn-default next" @click="processSettings">Next
35 <span class="wpfnl-loader" v-if="showLoader"></span>
36 </a>
37 </div>
38
39 </div>
40 </template>
41
42 <script>
43 import apiFetch from '@wordpress/api-fetch'
44 import TooltipIcon from '../../../src/components/icons/TooltipIcon.vue'
45 // eslint-disable-next-line no-undef
46 var j = jQuery.noConflict()
47 const nonce = window.setup_wizard_obj.nonce
48 apiFetch.use(apiFetch.createNonceMiddleware(nonce))
49
50 export default {
51 name: 'Automation',
52 components: {
53 TooltipIcon
54 },
55 props: {
56 // eslint-disable-next-line vue/require-default-prop
57 wizardSlug: String,
58 prevStepLink: String,
59 showLoader: Boolean,
60 isMrmInstalled: String,
61 isMrmActive: String,
62 },
63 data: function () {
64 return {
65 isIstallMailMint: 'yes' === this.isMrmActive ? false : true,
66 }
67 },
68 computed: {
69 getLabelMrm() {
70 // Computed property
71 if ('yes' === this.isMrmInstalled && 'no' === this.isMrmActive) {
72 return 'Activate Mail Mint'
73 } else if ('no' === this.isMrmInstalled && 'no' === this.isMrmActive) {
74 return 'Install & Activate Mail Mint'
75 } else {
76 return 'Mail Mint is already activated'
77 }
78 },
79 },
80 mounted () {
81 this.$emit('setPluginSlug', 'mail-mint', true)
82 this.$emit('changeSetUpType', 'plugin')
83 },
84 methods: {
85
86 processSettings: function (e) {
87 e.preventDefault();
88 this.$emit('processSettings')
89 },
90 isPermitted: function (e) {
91 e.preventDefault();
92 if( this.isIstallMailMint ){
93 this.$emit('setPluginSlug', 'mail-mint', true)
94 }else{
95 this.$emit('setPluginSlug', '');
96 }
97
98 },
99
100 }
101 }
102 </script>
103