mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
Fix on route change event
This commit is contained in:
@@ -17,9 +17,12 @@
|
||||
refreshingSpinner="circles"
|
||||
refreshingText="A actualizar...">
|
||||
</ion-refresher-content>
|
||||
|
||||
</ion-refresher>
|
||||
|
||||
<div class="overflow-y-auto height-100 width-100">
|
||||
<ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar>
|
||||
|
||||
<div >
|
||||
<ion-list part="divo">
|
||||
<ion-item
|
||||
|
||||
@@ -68,13 +68,9 @@ export class DespachosPage implements OnInit {
|
||||
//Inicializar segment
|
||||
this.segment = "despachos";
|
||||
|
||||
// update list
|
||||
const location = window.location
|
||||
const pathname = location.pathname + location.search
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if (event instanceof NavigationEnd && event.url.startsWith(pathname)) {
|
||||
console.log('update', pathname)
|
||||
if (event instanceof NavigationEnd &&
|
||||
event.url.startsWith('/home/gabinete-digital?despachos=true')) {
|
||||
this.LoadList();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user