mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
Fix skeleton loader
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</div>
|
||||
<div *ngIf="despachoList.length < 1">
|
||||
<div *ngIf="skeletonLoader">
|
||||
|
||||
<ion-list>
|
||||
<ion-item>
|
||||
|
||||
@@ -43,6 +43,7 @@ export class DespachosPage implements OnInit {
|
||||
loadedAttachments:any;
|
||||
dicIndex = 0;
|
||||
inicial = false
|
||||
skeletonLoader = true
|
||||
|
||||
constructor (
|
||||
private processes:ProcessesService,
|
||||
@@ -93,6 +94,8 @@ export class DespachosPage implements OnInit {
|
||||
|
||||
async LoadList(){
|
||||
|
||||
this.skeletonLoader = true
|
||||
|
||||
let result = await this.processes.GetTasksList("Despacho", false).toPromise();
|
||||
//let despachos = result.reverse().filter(data => data.activityInstanceName == "Despacho (Paralelo)");
|
||||
this.despachoList = new Array();
|
||||
@@ -123,7 +126,8 @@ export class DespachosPage implements OnInit {
|
||||
});
|
||||
|
||||
this.despachoList = this.sortArrayISODate(this.despachoList).reverse();
|
||||
|
||||
this.skeletonLoader = false
|
||||
|
||||
}
|
||||
|
||||
sortArrayISODate(myArray: any){
|
||||
|
||||
Reference in New Issue
Block a user