ng-easycommerce 0.0.514 → 0.0.515

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,5 @@
1
+ # version 0.0.515
2
+ - Se modifica funcionamiento del checkout solucionando bug 0.0.513
1
3
  # version 0.0.514
2
4
  - Se da formato a fecha de lotes en las ordenes y se modifica funcion actualizarCarrito() para que desactive el boton de + o - hasta que se lance el endpoint
3
5
  # version 0.0.513
@@ -7256,7 +7256,7 @@
7256
7256
  _this.steps = [];
7257
7257
  _this.loading$ = _this.loadingSubject.asObservable();
7258
7258
  _this.initializeCheckout = function () {
7259
- var _a, _b;
7259
+ var _a, _b, _c, _d;
7260
7260
  _this.canCheckout = true;
7261
7261
  var steps = [];
7262
7262
  //console.log('channel', this.channel)
@@ -7269,7 +7269,9 @@
7269
7269
  _this.checkoutService.setSteps(steps);
7270
7270
  _this.setStepper();
7271
7271
  _this.loadingSubject.next(false);
7272
- _this.subReady = _this.checkoutService.onReady$.pipe(operators.filter(function (ready) { return ready; })).subscribe(function (res) { res && _this.endCheckout(); });
7272
+ if (((_c = _this.channel) === null || _c === void 0 ? void 0 : _c.isSkippingShippingStepAllowed) != true || ((_d = _this.channel) === null || _d === void 0 ? void 0 : _d.isSkippingPaymentStepAllowed) != true) {
7273
+ _this.subReady = _this.checkoutService.onReady$.pipe(operators.filter(function (ready) { return ready; })).subscribe(function (res) { res && _this.endCheckout(); });
7274
+ }
7273
7275
  };
7274
7276
  _this.goBack = function () { return _this.stepper.previous(); };
7275
7277
  _this.isStepReady = function (step_name) { return _this.checkoutService.isStepReady(step_name); };
@@ -7657,7 +7659,7 @@
7657
7659
  }
7658
7660
  this.form_ready = true;
7659
7661
  this.allready_data = true;
7660
- // this.nextStep()
7662
+ this.nextStep();
7661
7663
  }
7662
7664
  else {
7663
7665
  this.toast.show('operation-error');