fixed worklist and icon issue. Also removed unused plugins.

mohemm-issues-jan-31
umasoodch 5 years ago
parent 2c99326146
commit c6ee3e798c

@ -109,7 +109,6 @@
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="mx.ferreyra.callnumber" spec="0.0.2" />
<plugin name="cordova-plugin-geolocation" spec="~4.0.1" />
<plugin name="cordova-plugin-datepicker" spec="~0.9.3" />
<plugin name="cordova-plugin-ionic-webview" spec="4.1.0">

2618
Mohem/package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -29,7 +29,6 @@
"@ionic-native/barcode-scanner": "^5.18.0",
"@ionic-native/base64": "^5.18.0",
"@ionic-native/ble": "^5.18.0",
"@ionic-native/call-number": "^5.18.0",
"@ionic-native/camera": "^5.18.0",
"@ionic-native/core": "^5.8.0",
"@ionic-native/date-picker": "^5.10.0",
@ -156,7 +155,6 @@
"cordova-plugin-nativestorage": {},
"cordova-plugin-globalization": {},
"cordova-plugin-android-permissions": {},
"mx.ferreyra.callnumber": {},
"cordova-plugin-badge": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-datepicker": {},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 37 KiB

@ -235,7 +235,6 @@ public getMonthNameAr(value: number): string {
public mobileNumber(number: string) {
return number.substr(1, number.length - 1);
}
public testFunction() {}
public stopLoading() {
this.progressLoadingService.dismiss();

@ -19,7 +19,7 @@
<span>{{ts.trPK('work-list','total')}} <br> {{ts.trPK('work-list','open-reqest')}}</span>
</div>
<p-chart *ngIf="!showChart || !receivedITGCount" class="today-graph" type="doughnut" [data]="data" [options]="options"></p-chart>
<p-chart *ngIf="showChart && receivedITGCount" class="today-graph" type="doughnut" [data]="data" [options]="options"></p-chart>
<p-chart *ngIf="checkLoadingStatus()" class="today-graph" type="doughnut" [data]="data" [options]="options"></p-chart>
</div>
<ion-row class="filters-row" *ngIf="showChart && receivedITGCount">

@ -50,7 +50,6 @@ export class HomeComponent implements OnInit {
public noData = false;
public isITG = false;
public isSearch = false;
// public direction = 'ltr';
public direction: string;
public ITGCount = 0;
public ITGSegment: { name: string, code: any, data: any, style: boolean, names?: any }[] = [];
@ -205,7 +204,6 @@ export class HomeComponent implements OnInit {
}
callWorkListServices() {
// this.Details();
this.Count();
this.getAllPushNotificationFun();
}
@ -243,10 +241,19 @@ export class HomeComponent implements OnInit {
}
// this.data.datasets[0].data[4] = this.ITGCount;
this.showChart = true;
this.common.stopLoading();
// this.common.stopLoading();
this.isLoading = false;
}
checkLoadingStatus () {
if (this.showChart && this.receivedITGCount) {
this.common.stopLoading();
return true;
} else {
return false;
}
}
activeFilter(index: number) {
console.log(this.filters);
if (this.currentActiveIndex !== index) {
@ -464,7 +471,7 @@ export class HomeComponent implements OnInit {
this.newWorkListResponse = [];
this.data.datasets[0].data[4] = this.ITGCount;
this.showChart = true;
this.common.stopLoading();
// this.common.stopLoading();
this.isLoading =false;
}
}
@ -570,11 +577,11 @@ export class HomeComponent implements OnInit {
Details() {
this.workListService.getITGDetails('', '', this.isPostNoLoad)
.subscribe((result: any) => {
this.receivedITGCount = true;
this.ITGCount = result.TotalCount;
this.totalRequestCount = this.totalRequestCount + result.TotalCount;
this.data.datasets[0].data[4] = this.ITGCount;
this.filters[5].value = result.TotalCount;
this.receivedITGCount = true;
});
}

Loading…
Cancel
Save