Fix skeleton loader

This commit is contained in:
Peter Maquiran
2021-07-14 16:12:04 +01:00
parent 29d8894c7b
commit c0fea28eee
32 changed files with 146 additions and 89 deletions
@@ -53,7 +53,7 @@
</div>
</ion-list>
</div>
<div *ngIf="!taskslist">
<div *ngIf="skeletonLoader">
<ion-list>
<ion-item>
@@ -13,7 +13,7 @@ import { AlertService } from 'src/app/services/alert.service';
export class ExpedientePage implements OnInit {
segment:string;
showLoader: boolean;
skeletonLoader = true
//profile:string;
taskslist:DailyWorkTask[];
@@ -37,7 +37,8 @@ export class ExpedientePage implements OnInit {
}
LoadList(){
this.showLoader = true;
this.skeletonLoader = true
this.processes.GetTasksList("Expediente", false).subscribe(result => {
console.log(result);
this.taskslist = new Array();
@@ -61,7 +62,7 @@ export class ExpedientePage implements OnInit {
this.taskslist.push(task);
});
console.log(this.taskslist);
this.showLoader = false;
this.skeletonLoader = false;
});
}