performance

This commit is contained in:
Peter Maquiran
2023-06-11 20:17:10 +01:00
parent e6fc2f19f2
commit 2688b1e012
37 changed files with 543 additions and 257 deletions
@@ -29,47 +29,42 @@ export class AllProcessesPage implements OnInit {
AllProcess = []
ordinance: string = 'old'
listSubscription : {
delete(): void;
}
constructor(
private router: Router,
public ThemeService: ThemeService,
public TaskService: TaskService,
private route: ActivatedRoute
) {}
ngOnInit() {
// this.updateAllProcess()
this.checkFilter();
}
this.router.events.forEach((event) => {
if (event instanceof NavigationEnd && event.url.includes('/home/gabinete-digital')) {
// this.refreshing();
this.checkFilter();
}
});
ngAfterViewInit(): void {
setTimeout(() => {
// this.miniSearch.addAll(this.TaskService.AllProcess)
// window['miniSearch'] = this.miniSearch
this.TaskService.registerCallback({
id: import.meta.url,
funx:() => {
this.dynamicSearch()
}
})
}, 10)
this.TaskService.registerCallback({
this.listSubscription = this.TaskService.registerCallback({
id: import.meta.url,
funx:() => {
this.dynamicSearch()
}
})
this.dynamicSearch();
}
ngOnDestroy() {
this.listSubscription.delete()
}
openSearch() {
// this.dynamicSearch()
}