mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
performance
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user