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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user