ng-easycommerce 0.0.475 → 0.0.477

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.477
2
+ - Se agrega una variable en el componente LoginFormEc para poder cambiar la url de redireccion post login exitoso.
3
+ # version 0.0.476
4
+ - Se corrige la url de la libreria del método de pago decidir, en donde se reemplaza la letra **d** por la letra **g** en la palabra `ord_id` que pasa a ser `org_id`.
1
5
  # version 0.0.475
2
6
  - Se corrige un problema con las imagenes en el componente `order-ec`, ahora muestra las imagenes correspondiente al item de la orden.
3
7
  - Se agrega un parámetro en `order-list-ec` para poder indicar si mostrar o no las imagenes. El parámetro se llama `showImage`.
@@ -91,17 +91,16 @@
91
91
  let infoDecidir = JSON.parse(localStorage.getItem('dataDecidir')) || undefined
92
92
  //console.log(infoDecidir)
93
93
  let urlBase = 'https://h.online-metrix.net/fp/tags.js';
94
- let ord_id = infoDecidir?.config?.public_environment == 'test' ? '1snn5n9w' : 'k8vif92e'
94
+ let org_id = infoDecidir?.config?.public_environment == 'test' ? '1snn5n9w' : 'k8vif92e'
95
95
  let merchand_id = infoDecidir?.config?.public_merchand_id || 'decidir_agregador'
96
96
  let cybersource = infoDecidir?.config?.public_cybersource || 'deshabilitado'
97
97
  let session_id = makeSessionId(8)
98
98
 
99
- my_copy_script.setAttribute('src', urlBase+'?ord_id='+ord_id+'&session_id='+merchand_id+session_id)
99
+ my_copy_script.setAttribute('src', urlBase+'?org_id='+org_id+'&session_id='+merchand_id+session_id)
100
100
  document.head.appendChild(my_copy_script)
101
101
 
102
102
  </script>
103
- <!-- <script type="text/javascript" src="https://h.online-metrix.net/fp/tags.js?org_id=1snn5n9w&session_id=decidir_agregadornumrandom"></script>
104
- --></head>
103
+ </head>
105
104
 
106
105
  <body>
107
106
 
@@ -272,7 +271,7 @@
272
271
  }
273
272
  let iframe = document.createElement('iframe')
274
273
  iframe.setAttribute('style', 'width: 100px; height: 100px; border: 0; position: absolute; top:-5000px;')
275
- iframe.setAttribute('src','https://h.online-metrix.net/fp/tags?org_id='+ord_id+'&session_id='+merchand_id+session_id)
274
+ iframe.setAttribute('src','https://h.online-metrix.net/fp/tags?org_id='+org_id+'&session_id='+merchand_id+session_id)
276
275
 
277
276
  document.body.appendChild(iframe)
278
277
 
@@ -11698,6 +11698,7 @@
11698
11698
  _this.router = router;
11699
11699
  _this.darkMode = false;
11700
11700
  _this.redirect = true;
11701
+ _this.redirectTo = '/';
11701
11702
  _this.complete = true;
11702
11703
  _this.title = 'login';
11703
11704
  /* @Input() withRoles: UserRoleType[] = [UserRoleType.SELLER, UserRoleType.RETAILER, UserRoleType.WHOLESALER] */
@@ -11738,7 +11739,7 @@
11738
11739
  var resolverFunction = _this.authService.getHomeResolver();
11739
11740
  resolverFunction
11740
11741
  ? resolverFunction()
11741
- : _this.router.navigateByUrl('/');
11742
+ : _this.router.navigateByUrl(_this.redirectTo);
11742
11743
  };
11743
11744
  _this.ecOnConstruct();
11744
11745
  return _this;
@@ -11764,6 +11765,9 @@
11764
11765
  __decorate$1m([
11765
11766
  core.Input()
11766
11767
  ], LoginFormEcComponent.prototype, "redirect", void 0);
11768
+ __decorate$1m([
11769
+ core.Input()
11770
+ ], LoginFormEcComponent.prototype, "redirectTo", void 0);
11767
11771
  __decorate$1m([
11768
11772
  core.Input()
11769
11773
  ], LoginFormEcComponent.prototype, "complete", void 0);