|
|
|
@ -702,7 +702,6 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
openNotificationsDashboard() {
|
|
|
|
openNotificationsDashboard() {
|
|
|
|
this.common.startLoading();
|
|
|
|
this.common.startLoading();
|
|
|
|
this.resetFiltersUI();
|
|
|
|
|
|
|
|
this.totalRequestCount = 0;
|
|
|
|
this.totalRequestCount = 0;
|
|
|
|
this.DS.getOpenNotifications('', '', false).subscribe((result: GetOpenNotificationsResponse) => {
|
|
|
|
this.DS.getOpenNotifications('', '', false).subscribe((result: GetOpenNotificationsResponse) => {
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
@ -715,9 +714,7 @@ export class HomeComponent implements OnInit {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
this.common.setFilterValues(result['GetOpenNotificationsList']);
|
|
|
|
this.common.setFilterValues(result['GetOpenNotificationsList']);
|
|
|
|
const values = this.common.getFiltersData();
|
|
|
|
|
|
|
|
this.data = values.data;
|
|
|
|
|
|
|
|
this.filters = values.filters;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -726,6 +723,9 @@ export class HomeComponent implements OnInit {
|
|
|
|
this.workListService.getITGDetails('', '', this.isPostNoLoad).subscribe((result: any) => {
|
|
|
|
this.workListService.getITGDetails('', '', this.isPostNoLoad).subscribe((result: any) => {
|
|
|
|
this.common.sharedService.setSharedData(result, MenuResponse.ITG_COUNTS);
|
|
|
|
this.common.sharedService.setSharedData(result, MenuResponse.ITG_COUNTS);
|
|
|
|
this.common.filterKeys['ITG'] = result.TotalCount;
|
|
|
|
this.common.filterKeys['ITG'] = result.TotalCount;
|
|
|
|
|
|
|
|
const values = this.common.getFiltersData();
|
|
|
|
|
|
|
|
this.data = values.data;
|
|
|
|
|
|
|
|
this.filters = values.filters;
|
|
|
|
this.totalRequestCount = Math.floor(count + result.TotalCount);
|
|
|
|
this.totalRequestCount = Math.floor(count + result.TotalCount);
|
|
|
|
this.common.sharedService.setSharedData(this.totalRequestCount, 'total-count');
|
|
|
|
this.common.sharedService.setSharedData(this.totalRequestCount, 'total-count');
|
|
|
|
this.getCOCNotificationCount();
|
|
|
|
this.getCOCNotificationCount();
|
|
|
|
|