@ecomplus/storefront-components 1.0.0-beta.181 → 1.0.0-beta.183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecomplus/storefront-components",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.183",
|
|
4
4
|
"description": "Vue components for E-Com Plus Storefront",
|
|
5
5
|
"main": "dist/storefront-components.min.js",
|
|
6
6
|
"scripts": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@brazilian-utils/brazilian-utils": "^1.0.0-rc.12",
|
|
36
|
-
"@ecomplus/client": "^2.
|
|
36
|
+
"@ecomplus/client": "^2.4.0",
|
|
37
37
|
"@ecomplus/i18n": "^1.32.2",
|
|
38
38
|
"@ecomplus/passport-client": "^1.2.1",
|
|
39
39
|
"@ecomplus/search-engine": "^2.6.1",
|
|
@@ -302,7 +302,7 @@ export default {
|
|
|
302
302
|
|
|
303
303
|
watch: {
|
|
304
304
|
couponCode (couponCode) {
|
|
305
|
-
if (couponCode !== this.
|
|
305
|
+
if (couponCode !== this.localCouponCode) {
|
|
306
306
|
this.localCouponCode = couponCode
|
|
307
307
|
if (couponCode && !this.isFormVisible) {
|
|
308
308
|
this.isFormVisible = true
|
|
@@ -310,6 +310,12 @@ export default {
|
|
|
310
310
|
}
|
|
311
311
|
},
|
|
312
312
|
|
|
313
|
+
localCouponCode () {
|
|
314
|
+
if (this.alertVariant === 'info') {
|
|
315
|
+
this.alertText = null
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
|
|
313
319
|
isFormAlwaysVisible (isFormVisible) {
|
|
314
320
|
if (isFormVisible) {
|
|
315
321
|
this.isFormVisible = true
|