ng-easycommerce 0.0.574 → 0.0.576

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.
@@ -13084,7 +13084,10 @@ var RegisterFormEcComponent = /** @class */ (function (_super) {
13084
13084
  });
13085
13085
  _this.success = true;
13086
13086
  _this.ready.emit(true);
13087
- if (_this.redirect) {
13087
+ if (messageKey !== 'register-ok' && _this.redirect) {
13088
+ _this.registerForm.reset();
13089
+ }
13090
+ if (_this.redirect && messageKey === 'register-ok') {
13088
13091
  _this.router.navigateByUrl('home');
13089
13092
  }
13090
13093
  }, function (error) {
@@ -15671,7 +15674,7 @@ var __decorate$1H = (this && this.__decorate) || function (decorators, target, k
15671
15674
  };
15672
15675
  var DecidirEcComponent = /** @class */ (function (_super) {
15673
15676
  __extends$14(DecidirEcComponent, _super);
15674
- function DecidirEcComponent(renderer, connection, toastrService, consts, cartService, activedRoute, sanitizer, modalService, paramsService) {
15677
+ function DecidirEcComponent(renderer, connection, toastrService, consts, cartService, activedRoute, sanitizer, modalService, paramsService, checkoutService) {
15675
15678
  var _this = _super.call(this) || this;
15676
15679
  _this.renderer = renderer;
15677
15680
  _this.connection = connection;
@@ -15682,6 +15685,7 @@ var DecidirEcComponent = /** @class */ (function (_super) {
15682
15685
  _this.sanitizer = sanitizer;
15683
15686
  _this.modalService = modalService;
15684
15687
  _this.paramsService = paramsService;
15688
+ _this.checkoutService = checkoutService;
15685
15689
  _this.method = null;
15686
15690
  _this.total_amount = 0;
15687
15691
  _this.user_data = null;
@@ -15696,6 +15700,7 @@ var DecidirEcComponent = /** @class */ (function (_super) {
15696
15700
  sessionStorage.removeItem('state');
15697
15701
  localStorage.removeItem('state');
15698
15702
  localStorage.removeItem('dataRedirect');
15703
+ localStorage.removeItem('subtotal');
15699
15704
  localStorage.removeItem('dataDecidir');
15700
15705
  localStorage.removeItem('message');
15701
15706
  localStorage.removeItem('subMessage');
@@ -15779,6 +15784,7 @@ var DecidirEcComponent = /** @class */ (function (_super) {
15779
15784
  this.clearStorageState();
15780
15785
  localStorage.setItem('dataRedirect', this.dataRedirect());
15781
15786
  localStorage.setItem('dataDecidir', JSON.stringify(this.method));
15787
+ localStorage.setItem('subtotal', this.checkoutService.total);
15782
15788
  this.modalRef = this.modalService.show(template, { class: 'modal-xl modal-dialog-centered ', keyboard: false, backdrop: 'static', animated: true });
15783
15789
  this.closeModal = '';
15784
15790
  this.callState();
@@ -15792,7 +15798,8 @@ var DecidirEcComponent = /** @class */ (function (_super) {
15792
15798
  { type: ActivatedRoute },
15793
15799
  { type: DomSanitizer },
15794
15800
  { type: BsModalService },
15795
- { type: ParametersService }
15801
+ { type: ParametersService },
15802
+ { type: CheckoutService }
15796
15803
  ]; };
15797
15804
  __decorate$1H([
15798
15805
  Input()