ng-easycommerce 0.0.641 → 0.0.643

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 CHANGED
@@ -1,3 +1,7 @@
1
+ # version 0.0.643
2
+ - `detail-checkout-block`: se corrigió la lógica para mostrar "impuestos" o "impuestos nacionales" en el checkout según la configuración del canal.
3
+ # version 0.0.642
4
+ - `sidebar` evitar spam al actualizar cantidades de items del pedido
1
5
  # version 0.0.641
2
6
  - evitar spam al actualizar cantidades de items del pedido.
3
7
  # version 0.0.640
@@ -14779,7 +14779,7 @@
14779
14779
  };
14780
14780
  DetailCheckoutBlockEcComponent.prototype.getTypeLabel = function (type) {
14781
14781
  if (type === 'taxes') {
14782
- return this.showTaxLegend ? 'taxes' : 'national-taxes';
14782
+ return this.showTaxLegend ? 'national-taxes' : 'taxes';
14783
14783
  }
14784
14784
  return type;
14785
14785
  };
@@ -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;