diff --git a/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.ts b/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.ts index b477a5d49..bc907a020 100644 --- a/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.ts +++ b/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.ts @@ -68,7 +68,6 @@ export class DespachosPrPage implements OnInit { const location = window.location const pathname = location.pathname + location.search - this.LoadList(); this.router.events.forEach((event) => { if (event instanceof NavigationStart && event.url.startsWith(pathname)) { diff --git a/src/app/pages/gabinete-digital/despachos/despachos.page.ts b/src/app/pages/gabinete-digital/despachos/despachos.page.ts index 4a7f8f2a6..caa24bbc5 100644 --- a/src/app/pages/gabinete-digital/despachos/despachos.page.ts +++ b/src/app/pages/gabinete-digital/despachos/despachos.page.ts @@ -56,7 +56,6 @@ export class DespachosPage implements OnInit { const location = window.location const pathname = location.pathname + location.search - this.LoadList(); this.router.events.forEach((event) => { if (event instanceof NavigationStart && event.url.startsWith(pathname)) { diff --git a/src/app/pages/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts b/src/app/pages/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts index 1bd7a25f9..d91790366 100644 --- a/src/app/pages/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts +++ b/src/app/pages/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts @@ -37,7 +37,6 @@ export class DiplomasAssinarPage implements OnInit { ngOnInit() { const location = window.location const pathname = location.pathname + location.search - this.LoadList(); this.router.events.forEach((event) => { if (event instanceof NavigationEnd && event.url.startsWith(pathname)) { @@ -78,7 +77,7 @@ export class DiplomasAssinarPage implements OnInit { let diplomasAssinar = diplomas.reverse().filter(data => data.activityInstanceName == "Assinar Diploma"); console.log(diplomasAssinar); - + diplomasAssinar.forEach(element => { let task: customTask = this.customTaskPipe.transform(element) this.diplomasList.push(task); diff --git a/src/app/pages/gabinete-digital/diplomas/diplomas.page.ts b/src/app/pages/gabinete-digital/diplomas/diplomas.page.ts index 67e4ab67d..50fdb4bcc 100644 --- a/src/app/pages/gabinete-digital/diplomas/diplomas.page.ts +++ b/src/app/pages/gabinete-digital/diplomas/diplomas.page.ts @@ -43,7 +43,6 @@ constructor( const location = window.location const pathname = location.pathname + location.search - this.LoadList(); this.router.events.forEach((event) => { if (event instanceof NavigationStart && event.url.startsWith(pathname)) { diff --git a/src/app/pages/gabinete-digital/event-list/event-list.page.ts b/src/app/pages/gabinete-digital/event-list/event-list.page.ts index bccca72e0..ae89785ba 100644 --- a/src/app/pages/gabinete-digital/event-list/event-list.page.ts +++ b/src/app/pages/gabinete-digital/event-list/event-list.page.ts @@ -42,7 +42,6 @@ export class EventListPage implements OnInit { const location = window.location const pathname = location.pathname + location.search - this.LoadToApproveEvents(); this.router.events.forEach((event) => { if (event instanceof NavigationStart && event.url.startsWith(pathname)) { diff --git a/src/app/pages/gabinete-digital/expediente/expediente.page.ts b/src/app/pages/gabinete-digital/expediente/expediente.page.ts index 44ff72e21..398fc2920 100644 --- a/src/app/pages/gabinete-digital/expediente/expediente.page.ts +++ b/src/app/pages/gabinete-digital/expediente/expediente.page.ts @@ -37,8 +37,6 @@ export class ExpedientePage implements OnInit { const location = window.location const pathname = location.pathname + location.search - - this.LoadList(); this.router.events.forEach((event) => { if (event instanceof NavigationStart && event.url.startsWith(pathname)) { diff --git a/src/app/pages/gabinete-digital/expedientes-pr/expedientes-pr.page.ts b/src/app/pages/gabinete-digital/expedientes-pr/expedientes-pr.page.ts index d8d966be0..23034538b 100644 --- a/src/app/pages/gabinete-digital/expedientes-pr/expedientes-pr.page.ts +++ b/src/app/pages/gabinete-digital/expedientes-pr/expedientes-pr.page.ts @@ -47,8 +47,6 @@ export class ExpedientesPrPage implements OnInit { const location = window.location const pathname = location.pathname + location.search - this.LoadList(); - this.router.events.forEach((event) => { if (event instanceof NavigationStart && event.url.startsWith(pathname)) { if(window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) { diff --git a/src/app/pages/gabinete-digital/pedidos/pedidos.page.ts b/src/app/pages/gabinete-digital/pedidos/pedidos.page.ts index 2b0c7e864..bdef5c4e8 100644 --- a/src/app/pages/gabinete-digital/pedidos/pedidos.page.ts +++ b/src/app/pages/gabinete-digital/pedidos/pedidos.page.ts @@ -53,8 +53,6 @@ export class PedidosPage implements OnInit { ngOnInit() { - this.LoadList(); - this.router.events.forEach((event) => { if(event instanceof NavigationStart && '/home/gabinete-digital/pedidos?parecer=true'.startsWith(event.url) || event instanceof NavigationStart && '/home/gabinete-digital/pedidos?deferimento=true'.startsWith(event.url) diff --git a/src/app/shared/gabinete-digital/despachos-pr/despachos-pr.page.ts b/src/app/shared/gabinete-digital/despachos-pr/despachos-pr.page.ts index 774b8882f..db7457ab7 100644 --- a/src/app/shared/gabinete-digital/despachos-pr/despachos-pr.page.ts +++ b/src/app/shared/gabinete-digital/despachos-pr/despachos-pr.page.ts @@ -16,12 +16,11 @@ import { CustomTaskPipe } from 'src/app/pipes/custom-task.pipe'; }) export class DespachosPrPage implements OnInit { -customTaskPipe = new CustomTaskPipe() -skeletonLoader = true + customTaskPipe = new CustomTaskPipe() + skeletonLoader = true - -loggeduser: User; -despachosprstore = DespachosprStore; + loggeduser: User; + despachosprstore = DespachosprStore; constructor ( private processes:ProcessesService, @@ -34,8 +33,6 @@ constructor ( ngOnInit() { - this.LoadList(); - this.router.events.forEach((event) => { if (event instanceof NavigationStart && event.url.startsWith('/home/gabinete-digital?despachospr=true')) { diff --git a/src/app/shared/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts b/src/app/shared/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts index 7a6f44101..5c85d212d 100644 --- a/src/app/shared/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts +++ b/src/app/shared/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts @@ -29,8 +29,6 @@ export class DiplomasAssinarPage implements OnInit { ) { } ngOnInit() { - // update list - this.LoadList(); this.router.events.forEach((event) => { if (event instanceof NavigationStart && '/home/gabinete-digital?diplomasassinar=true'.startsWith(event.url)) { diff --git a/src/app/shared/gabinete-digital/diplomas/diplomas.page.ts b/src/app/shared/gabinete-digital/diplomas/diplomas.page.ts index 9d747897d..dfcdfa62f 100644 --- a/src/app/shared/gabinete-digital/diplomas/diplomas.page.ts +++ b/src/app/shared/gabinete-digital/diplomas/diplomas.page.ts @@ -39,10 +39,6 @@ constructor( ngOnInit() { // update list - this.LoadList(); - // update list - const location = window.location - const pathname = location.pathname + location.search this.router.events.forEach((event) => { if (event instanceof NavigationStart && '/home/gabinete-digital?diplomas=true'.startsWith(event.url)) { diff --git a/src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page.ts b/src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page.ts index e48f34e9d..0b5ab9771 100644 --- a/src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page.ts +++ b/src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page.ts @@ -38,9 +38,7 @@ export class ExpedientesPrPage implements OnInit { } ngOnInit() { - - this.LoadList(); - + this.router.events.forEach((event) => { if (event instanceof NavigationStart && event.url.startsWith('/home/gabinete-digital?expedientespr=true') || diff --git a/src/app/shared/gabinete-digital/expedients/expedients.page.ts b/src/app/shared/gabinete-digital/expedients/expedients.page.ts index 1f2536597..823423c2b 100644 --- a/src/app/shared/gabinete-digital/expedients/expedients.page.ts +++ b/src/app/shared/gabinete-digital/expedients/expedients.page.ts @@ -43,8 +43,7 @@ export class ExpedientsPage implements OnInit { ngOnInit() { //Inicializar segment this.segment = "expedientes"; - this.LoadList(); - + this.router.events.forEach((event) => { if (event instanceof NavigationStart && event.url.startsWith('/home/gabinete-digital?expedientes=true')) { diff --git a/src/app/shared/gabinete-digital/pedidos/pedidos.page.ts b/src/app/shared/gabinete-digital/pedidos/pedidos.page.ts index 0201b7cd0..bc9212c63 100644 --- a/src/app/shared/gabinete-digital/pedidos/pedidos.page.ts +++ b/src/app/shared/gabinete-digital/pedidos/pedidos.page.ts @@ -50,7 +50,6 @@ export class PedidosPage implements OnInit { ngOnInit() { - this.LoadList(); this.router.events.forEach((event) => { if(event instanceof NavigationStart && '/home/gabinete-digital?parecer=true'.startsWith(event.url) || diff --git a/src/app/shared/gabinete-digital/pendentes/pendentes.page.ts b/src/app/shared/gabinete-digital/pendentes/pendentes.page.ts index 8ecb2d1cb..014636344 100644 --- a/src/app/shared/gabinete-digital/pendentes/pendentes.page.ts +++ b/src/app/shared/gabinete-digital/pendentes/pendentes.page.ts @@ -34,9 +34,6 @@ export class PendentesPage implements OnInit { ngOnInit() { - // update list - this.LoadList(); - this.router.events.forEach((event) => { if (event instanceof NavigationStart && event.url.startsWith('/home/gabinete-digital?pendentes=true')) {