mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
Fix on route change event
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<ion-content>
|
||||
|
||||
<div class="width-100 overflow-y-auto height-100" *ngIf="taskslist.length >= 1">
|
||||
<ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar>
|
||||
<ion-list>
|
||||
<ion-item
|
||||
class="expediente ion-no-padding cursor-pointer"
|
||||
|
||||
@@ -22,7 +22,7 @@ export class ExpedientesPrPage implements OnInit {
|
||||
|
||||
taskslist:DailyWorkTask[] = [];
|
||||
serialNumber:string;
|
||||
skeletonLoader:boolean;
|
||||
skeletonLoader = true;
|
||||
|
||||
loggeduser: User;
|
||||
@Output() openExpedientDetail:EventEmitter<any> = new EventEmitter<any>();
|
||||
@@ -39,12 +39,9 @@ export class ExpedientesPrPage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
// 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)) {
|
||||
if (event instanceof NavigationEnd &&
|
||||
event.url.startsWith('/home/gabinete-digital?expedientespr=true')) {
|
||||
this.LoadList();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user