mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
improve request
This commit is contained in:
@@ -44,9 +44,11 @@ export class EventListPage implements OnInit {
|
||||
}
|
||||
|
||||
this.LoadToApproveEvents();
|
||||
|
||||
|
||||
const pathname = window.location.pathname
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
this.LoadToApproveEvents();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -65,8 +65,11 @@ ngOnInit() {
|
||||
//Inicializar segment
|
||||
this.segment = "despachos";
|
||||
this.LoadList();
|
||||
|
||||
const pathname = window.location.pathname
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
this.doRefresh();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -65,8 +65,10 @@ export class DespachosPage implements OnInit {
|
||||
//Inicializar segment
|
||||
this.segment = "despachos";
|
||||
this.LoadList();
|
||||
|
||||
const pathname = window.location.pathname
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
this.doRefresh();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -32,8 +32,10 @@ serialNumber:string;
|
||||
|
||||
ngOnInit() {
|
||||
this.LoadList();
|
||||
|
||||
const pathname = window.location.pathname
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
this.doRefresh();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -30,8 +30,11 @@ constructor(
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
const pathname = window.location.pathname
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
this.refreshing();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -40,8 +40,10 @@ export class EventsToApprovePage implements OnInit {
|
||||
|
||||
this.LoadToApproveEvents();
|
||||
|
||||
const pathname = window.location.pathname
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
this.LoadToApproveEvents();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -39,8 +39,11 @@ export class ExpedientesPrPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
const pathname = window.location.pathname
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
this.refreshing();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -42,8 +42,10 @@ export class ExpedientsPage implements OnInit {
|
||||
//Inicializar segment
|
||||
this.segment = "expedientes";
|
||||
this.LoadList();
|
||||
|
||||
const pathname = window.location.pathname
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
this.LoadList();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -49,8 +49,10 @@ export class PedidosPage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.LoadList();
|
||||
|
||||
const pathname = window.location.pathname
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
this.doRefresh();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -46,8 +46,10 @@ export class PendentesPage implements OnInit {
|
||||
this.segment = "despachos";
|
||||
this.LoadList();
|
||||
|
||||
const pathname = window.location.pathname
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
this.LoadList();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user