ng-easycommerce 0.0.459 → 0.0.461

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,9 @@
1
+ # version 0.0.461
2
+ - Se agrega el control de que cuando el metodo de pago incluya la clave "mercado_pago" y "credit" no muestre las dos vistas juntas.
3
+
4
+ # version 0.0.460
5
+ - Se agrega parametro en las funciones de logout para poder decidir a donde redireccionar tras el cierre de sesión. Quedan los valores que estaban por defecto en el parametro.
6
+
1
7
  # version 0.0.459
2
8
  - Se quita la palabra "gratis" (o su traducción), de los metodos de envío.
3
9
 
@@ -5605,9 +5605,10 @@
5605
5605
  _this.router = router;
5606
5606
  _this.paramsService = paramsService;
5607
5607
  _this.params = null;
5608
- _this.logout = function () {
5608
+ _this.logout = function (path) {
5609
+ if (path === void 0) { path = '/home'; }
5609
5610
  _this.authService.logout();
5610
- _this.router.navigateByUrl('/home');
5611
+ _this.router.navigateByUrl(path);
5611
5612
  };
5612
5613
  _this.paramsService.parameters.subscribe(function (p) {
5613
5614
  _this.params = p;
@@ -7356,7 +7357,7 @@
7356
7357
  _this.getPK = function (method) { return (method.config.public_key || method.public_key); };
7357
7358
  _this.isRedirectRedsys = function (code) { return code && code.toLocaleLowerCase().includes('redsys_redirect'); };
7358
7359
  _this.isRedirectCecaBank = function (code) { return code && code.toLocaleLowerCase().includes('ceca_bank_redirect'); };
7359
- _this.isMP = function (code) { return code && code.toLocaleLowerCase().includes('mercado_pago'); };
7360
+ _this.isMP = function (code) { return code && code.toLocaleLowerCase().includes('mercado_pago') && !code.toLocaleLowerCase().includes('credit'); };
7360
7361
  _this.isMPTarjetaDeCredito = function (code) { return code && code.toLocaleLowerCase().includes('credit'); };
7361
7362
  _this.isMethodOffline = function (code) { return code && code.toLocaleLowerCase().includes('offline'); };
7362
7363
  _this.isPeyPalExpress = function (code) { return code && code.toLocaleLowerCase().includes('paypal') && code.toLocaleLowerCase().includes('express'); };
@@ -8465,9 +8466,14 @@
8465
8466
  }
8466
8467
  };
8467
8468
  _this.nagivate = function (url) { return _this.router.navigateByUrl("/" + url); };
8468
- _this.logout = function () {
8469
+ /**
8470
+ * @description Termina la sesion del usuario y redirige por defecto al home
8471
+ * @param path para indicar a donde redireccionar.
8472
+ */
8473
+ _this.logout = function (path) {
8474
+ if (path === void 0) { path = 'home'; }
8469
8475
  _this.authService.logout();
8470
- _this.router.navigateByUrl('home');
8476
+ _this.router.navigateByUrl(path);
8471
8477
  };
8472
8478
  _this.setSearchValue = function (event, afterSearch) {
8473
8479
  var args = [];