mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
Fix skeleton loader
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="pendentesList.length < 1">
|
||||
<div *ngIf="skeletonLoader">
|
||||
<ion-list>
|
||||
<ion-item>
|
||||
<ion-thumbnail slot="end">
|
||||
|
||||
@@ -24,6 +24,7 @@ export class PendentesPage implements OnInit {
|
||||
|
||||
@Input() profile:string;
|
||||
segment:string;
|
||||
skeletonLoader = true
|
||||
|
||||
constructor(
|
||||
private processes:ProcessesService,
|
||||
@@ -60,7 +61,8 @@ export class PendentesPage implements OnInit {
|
||||
}
|
||||
|
||||
async LoadList(){
|
||||
this.showLoader = true;
|
||||
|
||||
this.skeletonLoader = true
|
||||
this.pendentesList = new Array();
|
||||
let pendentes = await this.processes.GetPendingTasks(false).toPromise();
|
||||
|
||||
@@ -87,7 +89,8 @@ export class PendentesPage implements OnInit {
|
||||
this.pendentesList = this.sortArrayISODate(this.pendentesList);
|
||||
|
||||
});
|
||||
this.showLoader = false;
|
||||
this.skeletonLoader = false;
|
||||
|
||||
}
|
||||
|
||||
sortArrayISODate(myArray: any){
|
||||
|
||||
Reference in New Issue
Block a user