utn-cli 2.0.26 → 2.0.27
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/package.json
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
# Rutas del archivo misc.js
|
|
7
7
|
#
|
|
8
8
|
|
|
9
|
+
###
|
|
10
|
+
GET {{ BASE_URL }}/misc/obtenerMensajesModulares HTTP/1.1
|
|
11
|
+
Authorization: Bearer {{ AUTH_TOKEN }}
|
|
12
|
+
Content-Type: application/json
|
|
13
|
+
Origin: {{ BASE_URL }}
|
|
14
|
+
|
|
9
15
|
###
|
|
10
16
|
GET {{ BASE_URL }}/misc/DatosParaReporteCSV HTTP/1.1
|
|
11
17
|
Authorization: Bearer {{ AUTH_TOKEN }}
|
|
@@ -81,7 +81,7 @@ export class ContenedorComponentesComponent {
|
|
|
81
81
|
mensaje: datos.body.Consentimiento[0].Texto,
|
|
82
82
|
textoCerrar: 'Cancelar',
|
|
83
83
|
textoAceptar: 'Aceptar',
|
|
84
|
-
onClose: () => { this.datosGlobalesService.
|
|
84
|
+
onClose: () => { this.datosGlobalesService.RedirigirAPortal() },
|
|
85
85
|
onAccept: () => {
|
|
86
86
|
this.http.post(`${this.datosGlobalesService.ObtenerURL()}ConsentimientoInformado/AceptarConsentimientoInformado`
|
|
87
87
|
, { ConsentimientoInformadoId })
|
|
@@ -90,7 +90,7 @@ export class ContenedorComponentesComponent {
|
|
|
90
90
|
// this.obtenerDatosParaPoblarLaTabla();
|
|
91
91
|
},
|
|
92
92
|
error: (error) => {
|
|
93
|
-
this.datosGlobalesService.
|
|
93
|
+
this.datosGlobalesService.RedirigirAPortal();
|
|
94
94
|
},
|
|
95
95
|
});
|
|
96
96
|
},
|
|
@@ -42,4 +42,19 @@ export class DatosGlobalesService {
|
|
|
42
42
|
// const protocolo = new URL(window.location.href).protocol
|
|
43
43
|
window.location.href = 'https://accesov2-frontend.sigu.utn.ac.cr/';
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
RedirigirAPortal() {
|
|
47
|
+
document.cookie = "_siguid=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/";
|
|
48
|
+
// const url = window.location.href.toLowerCase();
|
|
49
|
+
// if (url.includes('calidad')) {
|
|
50
|
+
// this.claseDelContenedor = 'contenedor calidad';
|
|
51
|
+
// } else if (url.includes('pruebas')) {
|
|
52
|
+
// this.claseDelContenedor = 'contenedor pruebas';
|
|
53
|
+
// } else {
|
|
54
|
+
// this.claseDelContenedor = 'contenedor';
|
|
55
|
+
// }
|
|
56
|
+
// portalv2-frontend-pruebas.181.193.85.44.nip.io
|
|
57
|
+
// const protocolo = new URL(window.location.href).protocol
|
|
58
|
+
window.location.href = 'https://portalv2-frontend.sigu.utn.ac.cr/';
|
|
59
|
+
}
|
|
45
60
|
}
|