From 2a109b883890a6cea9cde71fd8bd5d15d9acda77 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Wed, 18 Aug 2021 14:56:41 +0100 Subject: [PATCH] Improve --- src/app/pages/gabinete-digital/expediente/expediente.page.ts | 2 ++ .../gabinete-digital/expedientes-pr/expedientes-pr.page.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/pages/gabinete-digital/expediente/expediente.page.ts b/src/app/pages/gabinete-digital/expediente/expediente.page.ts index 398fc2920..e803d6052 100644 --- a/src/app/pages/gabinete-digital/expediente/expediente.page.ts +++ b/src/app/pages/gabinete-digital/expediente/expediente.page.ts @@ -38,6 +38,8 @@ 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)) { if(window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) { 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 23034538b..05792807c 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,6 +47,8 @@ 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')) { @@ -59,7 +61,7 @@ export class ExpedientesPrPage implements OnInit { } - LoadList(){ + LoadList() { this.skeletonLoader = true this.processes.GetTasksList("Expediente", false).subscribe(result => {