Fix on route change event

This commit is contained in:
Peter Maquiran
2021-07-16 15:43:37 +01:00
parent 144444e1b2
commit 5e6e8e17f3
18 changed files with 130 additions and 119 deletions
@@ -66,11 +66,9 @@ export class DespachosPrPage implements OnInit {
//Inicializar segment
this.segment = "despachos";
const location = window.location
const pathname = location.pathname + location.search
this.router.events.forEach((event) => {
if (event instanceof NavigationEnd && event.url.startsWith(pathname)) {
if (event instanceof NavigationEnd &&
event.url.startsWith('/home/gabinete-digital?despachospr=true')) {
this.LoadList();
}
});