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
+1 -1
View File
@@ -26,7 +26,7 @@
<div class="main-content justify-center d-flex height-100">
<div class="box-container width-100 d-flex mx-20" style="padding: 0px;overflow: hidden;">
<ion-progress-bar type="indeterminate" *ngIf="loadingAllTask"></ion-progress-bar>
<ion-progress-bar type="indeterminate" *ngIf="loadingAllTask || TaskService.showLoader"></ion-progress-bar>
<div class="px-20 pb-20">
<p class="time ion-text-left ">{{customDate}}</p>
<div class="wrap d-flex float-left">
+19 -7
View File
@@ -72,6 +72,10 @@ export class EventsPage implements OnInit {
searchSubject: string = '';
AllProcess = []
ordinance: string = 'old'
listSubscription : {
delete(): void;
}
constructor(
private eventService: EventsService,
@@ -87,12 +91,7 @@ export class EventsPage implements OnInit {
private changeProfileService: ChangeProfileService,
public TaskService: TaskService
) {
this.loadAllTask();
window['zipPhoneCallback'] = function (zipphone) {
var frame = document.getElementById('home-iframe');
if(frame) {
@@ -101,18 +100,30 @@ export class EventsPage implements OnInit {
}
this.changeProfileService.registerCallback(() => {
this.listToPresent = [];
this.listToPresentexpediente = []
})
this.TaskService.registerCallback({
}
ngAfterViewInit(): void {
this.loadAllTask();
this.listSubscription = this.TaskService.registerCallback({
id: import.meta.url,
funx:() => {
this.dynamicSearch()
}
})
this.dynamicSearch()
}
ngOnDestroy() {
this.listSubscription.delete()
}
ngOnInit() {
@@ -170,6 +181,7 @@ export class EventsPage implements OnInit {
async loadAllTask() {
this.loadingAllTask = true
await this.TaskService.LoadTask()
this.dynamicSearch()
this.loadingAllTask = false
}