From 5113e709599c6745ae67d6af3d5ed88099d5ca57 Mon Sep 17 00:00:00 2001 From: NandiniAV Date: Tue, 21 Jun 2022 16:14:37 +0530 Subject: [PATCH] Enabled logs & sourcemap --- angular.json | 10 +++++----- .../events/routes/list/list-event.component.ts | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/angular.json b/angular.json index 4037c51b9..a4d2e967d 100644 --- a/angular.json +++ b/angular.json @@ -101,7 +101,7 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": false, + "sourceMap": true, "extractCss": true, "namedChunks": false, "aot": true, @@ -127,7 +127,7 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": false, + "sourceMap": true, "extractCss": true, "namedChunks": false, "aot": true, @@ -153,7 +153,7 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": false, + "sourceMap": true, "extractCss": true, "namedChunks": false, "aot": true, @@ -179,7 +179,7 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": false, + "sourceMap": true, "extractCss": true, "namedChunks": false, "aot": true, @@ -205,7 +205,7 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": false, + "sourceMap": true, "extractCss": true, "namedChunks": false, "aot": true, diff --git a/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts b/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts index 1c81166d6..af60c0cd8 100644 --- a/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts +++ b/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts @@ -41,9 +41,13 @@ export class ListEventComponent implements OnInit, AfterViewInit, OnDestroy { this.currentUser = this.configSvc.userProfile && this.configSvc.userProfile.userId this.department = this.configSvc.userProfile && this.configSvc.userProfile.departmentName this.departmentID = this.configSvc.userProfile && this.configSvc.userProfile.rootOrgId + // tslint:disable-next-line:no-console + console.log('departmentID', this.departmentID) } else { if (_.get(this.activeRoute, 'snapshot.data.configService.userProfile.rootOrgId')) { this.departmentID = _.get(this.activeRoute, 'snapshot.data.configService.userProfile.rootOrgId') + // tslint:disable-next-line:no-console + console.log('departmentID', this.departmentID) } if (_.get(this.activeRoute, 'snapshot.data.configService.userProfile.departmentName')) { this.department = _.get(this.activeRoute, 'snapshot.data.configService.userProfile.departmentName') @@ -103,6 +107,8 @@ export class ListEventComponent implements OnInit, AfterViewInit, OnDestroy { } this.eventSvc.getEventsList(requestObj).subscribe((events: any) => { + // tslint:disable-next-line:no-console + console.log('events', events) this.setEventListData(events) }) } @@ -137,6 +143,8 @@ export class ListEventComponent implements OnInit, AfterViewInit, OnDestroy { } const isPast = this.compareDate(expiryDateFormat); (isPast) ? this.eventData['pastEvents'].push(eventDataObj) : this.eventData['upcomingEvents'].push(eventDataObj) + // tslint:disable-next-line:no-console + console.log('eventDataObj', eventDataObj) } }) this.filter('upcoming') @@ -159,6 +167,8 @@ export class ListEventComponent implements OnInit, AfterViewInit, OnDestroy { filter(key: string | 'timestamp' | 'best' | 'saved') { const upcomingEventsData: any[] = [] const pastEventsData: any[] = [] + // tslint:disable-next-line:no-console + console.log('eventData', this.eventData) if (this.eventData['pastEvents'] && this.eventData['pastEvents'].length > 0) { this.eventData['pastEvents'].forEach((event: any) => { pastEventsData.push(event) @@ -176,12 +186,18 @@ export class ListEventComponent implements OnInit, AfterViewInit, OnDestroy { switch (key) { case 'upcoming': this.data = upcomingEventsData + // tslint:disable-next-line:no-console + console.log('data', this.data) break case 'past': this.data = pastEventsData + // tslint:disable-next-line:no-console + console.log('data', this.data) break default: this.data = upcomingEventsData + // tslint:disable-next-line:no-console + console.log('data', this.data) break } }