mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
Add refresh and improve performance
This commit is contained in:
@@ -32,7 +32,15 @@ constructor(
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.refreshing();
|
||||
// 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)) {
|
||||
this.LoadList();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
segmentChanged(ev: any) {
|
||||
|
||||
Reference in New Issue
Block a user