fixed loading issues

mekawy-issues
Salman Afzal 6 years ago
parent 7f32c91f5c
commit 38ebbec6f1

@ -25,7 +25,7 @@
<p-chart *ngIf="showChart" class="today-graph" type="doughnut" [data]="data" [options]="options"></p-chart>
</div>
<ion-row class="filters-row">
<ion-row class="filters-row" *ngIf="showChart">
<ion-slides [options]="slideOptsOne">
<ion-slide *ngFor="let filter of filters; let i=index" [ngClass]="filter.disable === true ? 'disable-filter' : ''">
<app-card-filter

@ -223,6 +223,7 @@ export class HomeComponent implements OnInit {
}
}
this.showChart = true;
this.common.stopLoading();
}
activeFilter(index: number) {
@ -427,11 +428,10 @@ export class HomeComponent implements OnInit {
let categorizedWorkListResponse = [];
categorizedWorkListResponse = this.categorizeData(this.newWorkListResponse);
if (categorizedWorkListResponse.length > 0) {
this.assignDataToFilters();
this.showFormattedData = this.sortArray(categorizedWorkListResponse);
this.allFormattedData = this.showFormattedData;
this.common.sharedService.setSharedData(this.newWorkListResponse, HomeComponent.NOTIFICATION_ARR);
this.common.stopLoading();
this.assignDataToFilters();
}
} else {
this.newWorkListResponse = [];

Loading…
Cancel
Save