diff --git a/Mohem/src/app/notification/home/home.component.html b/Mohem/src/app/notification/home/home.component.html
index 83571b02..2d582be3 100644
--- a/Mohem/src/app/notification/home/home.component.html
+++ b/Mohem/src/app/notification/home/home.component.html
@@ -12,7 +12,7 @@
{{newWorkListResponse.length + ITGCount}} {{ts.trPK('work-list','of')}}
- 0 && selectedFilter !== 'ALL' && itemType !== ''">{{newWorkListResponse.length}} of
+ 0 && selectedFilter !== 'ALL' && itemType !== ''">{{newWorkListResponse.length}} {{ts.trPK('work-list','of')}}
{{totalRequestCount}}
0 && itemType === ''">{{newWorkListResponse[0].NO_OF_ROWS + ITGCount}}
0 && selectedFilter !== 'ALL' && itemType !== ''">{{newWorkListResponse[0].NO_OF_ROWS}}
diff --git a/Mohem/src/app/notification/home/home.component.ts b/Mohem/src/app/notification/home/home.component.ts
index 4a2dac84..8092dbf6 100644
--- a/Mohem/src/app/notification/home/home.component.ts
+++ b/Mohem/src/app/notification/home/home.component.ts
@@ -214,10 +214,8 @@ export class HomeComponent implements OnInit {
} else if (notification.ITEM_TYPE === 'INVMOA') {
this.filters[4].value = this.totalMR;
this.data.datasets[0].data[3] = notification.OPEN_NTF_NUMBER;
- } else if (notification.ITEM_TYPE === 'ITG') {
- this.filters[5].value = notification.OPEN_NTF_NUMBER;
- this.data.datasets[0].data[4] = notification.OPEN_NTF_NUMBER;
}
+ this.data.datasets[0].data[4] = this.ITGCount;
}
this.showChart = true;
this.common.stopLoading();
@@ -433,6 +431,9 @@ export class HomeComponent implements OnInit {
}
} else {
this.newWorkListResponse = [];
+ this.data.datasets[0].data[4] = this.ITGCount;
+ this.showChart = true;
+ this.common.stopLoading();
}
}
@@ -525,21 +526,12 @@ export class HomeComponent implements OnInit {
Details() {
this.workListService.getITGDetails('', '', this.isPostNoLoad)
.subscribe((result: any) => {
+ this.ITGCount = result.TotalCount;
this.totalRequestCount = this.totalRequestCount + result.TotalCount;
this.filters[5].value = result.TotalCount;
});
}
- ITGNotification() {
- // this.Details();
- this.isAll = false;
- this.isPR = false;
- this.isPO = false;
- this.isMR = false;
- this.isHR = false;
- this.isITG = true;
- }
-
searchBtn() {
this.isSearch = !this.isSearch;
}