utn-cli 2.1.46 → 2.1.48

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utn-cli",
3
- "version": "2.1.46",
3
+ "version": "2.1.48",
4
4
  "description": "Herramienta CLI unificada para la gestión de plantillas en SIGU.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -56,7 +56,7 @@ export class ContenedorComponentesComponent implements OnInit, OnDestroy, AfterV
56
56
  return this.itemsDeMenu.filter(i => !i.requierePermiso || this.TienePermiso);
57
57
  }
58
58
 
59
- get esDashboard(): boolean { return this.router.url === '/'; }
59
+ get esDashboard(): boolean { return window.location.hostname.includes('portalv2-frontend'); }
60
60
 
61
61
  toggleSidebar(): void {
62
62
  const abriendo = !this.datosGlobalesService.sidebarVisible$.value;
@@ -277,8 +277,8 @@ export class ContenedorComponentesComponent implements OnInit, OnDestroy, AfterV
277
277
  this.datosGlobalesService.sidebarVisible$.next(false);
278
278
  this.http.get(this.datosGlobalesService.ObtenerURL() + 'misc/obtenerNotificaciones').subscribe((datos: any) => {
279
279
  this.datosNotificaciones = (datos.body ?? []).map((n: any) => ({
280
- llave: n.FechaYHoraDeCreacion,
281
- valor: n.Notificacion,
280
+ llave: n.llave,
281
+ valor: n.valor,
282
282
  tachado: false,
283
283
  eliminando: false
284
284
  }));
@@ -8,13 +8,14 @@ export class DatosGlobalesService {
8
8
 
9
9
  readonly filtroDeTarjetas$ = new BehaviorSubject<string>('');
10
10
  readonly cantidadDeTarjetas$ = new BehaviorSubject<number>(0);
11
+ readonly sidebarVisible$ = new BehaviorSubject<boolean>(false);
11
12
 
12
13
  constructor() { }
13
14
 
14
15
  ObtenerToken() {
15
16
  const baseUrl = this.ObtenerURL();
16
17
  if (baseUrl === 'http://localhost/') {
17
- return 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiIxMiIsIklkZW50aWZpY2Fkb3IiOiIxMiIsImlhdCI6MTc3ODkzNTYyNiwiZXhwIjoxNzc4OTcxNjI2fQ.c5UQ8Umi-yjQorS_jYrAhBDDupesxapI1OsAlfcoVDY';
18
+ return 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiIxMiIsIklkZW50aWZpY2Fkb3IiOiIxMiIsImlhdCI6MTc3OTcxNjM5NCwiZXhwIjoxNzc5NzUyMzk0fQ.43_5Rnqyi-ArRpND81Z1MoPHluQbilX13AED102ilgQ';
18
19
  }
19
20
  const match = document.cookie.match(/(?:^|;\s*)_siguid=([^;]+)/);
20
21
  let token = match ? decodeURIComponent(match[1]) : '';