vanilli-shop-client
Advanced tools
Comparing version 0.9.11 to 0.9.12
@@ -24,4 +24,5 @@ import BaseStore from "./base-store"; | ||
increaseSelectedQty(): void; | ||
private resetSelectedQty; | ||
private updateCart; | ||
private loadCart; | ||
} |
@@ -117,2 +117,3 @@ "use strict"; | ||
notificationStore.notifySuccess(translationStore.t("cart.added", "{0} lisati {1}tk ostukorvi", [item.productName || "", item.qty.toString()])); | ||
this.resetSelectedQty(); | ||
} | ||
@@ -171,2 +172,5 @@ else { | ||
}; | ||
CartStore.prototype.resetSelectedQty = function () { | ||
this.selectedQty = 1; | ||
}; | ||
CartStore.prototype.updateCart = function () { | ||
@@ -206,4 +210,7 @@ var serializedItems = JSON.stringify(this.cartItems); | ||
], CartStore.prototype, "resetCart", null); | ||
__decorate([ | ||
mobx_1.action | ||
], CartStore.prototype, "resetSelectedQty", null); | ||
return CartStore; | ||
}(base_store_1.default)); | ||
exports.default = CartStore; |
{ | ||
"name": "vanilli-shop-client", | ||
"version": "0.9.11", | ||
"version": "0.9.12", | ||
"description": "Client for Vanilli Shop API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -122,2 +122,3 @@ import BaseStore from "./base-store"; | ||
notificationStore.notifySuccess(translationStore.t("cart.added", "{0} lisati {1}tk ostukorvi", [item.productName || "", item.qty.toString()])); | ||
this.resetSelectedQty(); | ||
} else { | ||
@@ -187,2 +188,7 @@ notificationStore.notifyError(translationStore.t("cart.min-qty", "Lisatav kogus peab olema vähemalt 1")); | ||
@action | ||
private resetSelectedQty() { | ||
this.selectedQty = 1; | ||
} | ||
private updateCart() { | ||
@@ -189,0 +195,0 @@ const serializedItems = JSON.stringify(this.cartItems); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132677
3081