ng-easycommerce 0.0.641 → 0.0.642
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/README.md +2 -0
- package/bundles/ng-easycommerce.umd.js +7 -0
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/ec-component/sidebar-ec/sidebar-ec.component.js +8 -1
- package/esm5/lib/ec-component/sidebar-ec/sidebar-ec.component.js +8 -1
- package/fesm2015/ng-easycommerce.js +7 -0
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +7 -0
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/sidebar-ec/sidebar-ec.component.d.ts +1 -0
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19137,6 +19137,7 @@
|
|
|
19137
19137
|
this.hideTaxes = false;
|
|
19138
19138
|
this.creditAccountShowPrices = null;
|
|
19139
19139
|
this.showTaxLegend = false;
|
|
19140
|
+
this.cartLoading = false;
|
|
19140
19141
|
this.getVariants = function (product) {
|
|
19141
19142
|
var item = product.product;
|
|
19142
19143
|
if (item.variants && item.variants.length && item.variants[0].options && item.variants[0].options.length) {
|
|
@@ -19194,9 +19195,15 @@
|
|
|
19194
19195
|
this.cartService.showPrice$.subscribe(function (showPrice) {
|
|
19195
19196
|
_this.creditAccountShowPrices = showPrice;
|
|
19196
19197
|
});
|
|
19198
|
+
this.cartService.loading.subscribe(function (isLoading) {
|
|
19199
|
+
_this.cartLoading = isLoading;
|
|
19200
|
+
});
|
|
19197
19201
|
};
|
|
19198
19202
|
SidebarEcComponent.prototype.actualizarCantidad = function (item, cantidad, stock, id) {
|
|
19199
19203
|
var _a;
|
|
19204
|
+
if (this.cartLoading) {
|
|
19205
|
+
return;
|
|
19206
|
+
}
|
|
19200
19207
|
var multipleQuantity = ((_a = item.product) === null || _a === void 0 ? void 0 : _a.variants) && item.product.variants.length > 0 ? item.product.variants[0].multipleQuantity : 0;
|
|
19201
19208
|
var step = multipleQuantity && multipleQuantity > 0 ? multipleQuantity : 1;
|
|
19202
19209
|
var newQuantity;
|