From 6e71054cd9555de7bebec4bd2aa67d9091589811 Mon Sep 17 00:00:00 2001 From: dakshayini-krishnappa Date: Fri, 9 Feb 2024 11:02:19 +0530 Subject: [PATCH 1/2] comment issue fix --- .../home/pipes/pipe-public-URL/pipe-public-URL.pipe.ts | 3 +-- .../events/event-list-view/event-list-view.component.ts | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/project/ws/app/src/lib/routes/home/pipes/pipe-public-URL/pipe-public-URL.pipe.ts b/project/ws/app/src/lib/routes/home/pipes/pipe-public-URL/pipe-public-URL.pipe.ts index b85e7611..b63713b3 100644 --- a/project/ws/app/src/lib/routes/home/pipes/pipe-public-URL/pipe-public-URL.pipe.ts +++ b/project/ws/app/src/lib/routes/home/pipes/pipe-public-URL/pipe-public-URL.pipe.ts @@ -18,8 +18,7 @@ export class PipePublicURL implements PipeTransform { const finalURL = `${environment.contentHost}${mainUrl}` return value ? finalURL : '' - } - { + } else { const mainUrl = value && value.split('/content').pop() || '' const finalURL = `${environment.contentHost}/${environment.contentBucket}/content${mainUrl}` return value ? finalURL : '' diff --git a/project/ws/app/src/lib/routes/home/routes/events/event-list-view/event-list-view.component.ts b/project/ws/app/src/lib/routes/home/routes/events/event-list-view/event-list-view.component.ts index b630078d..ea912567 100644 --- a/project/ws/app/src/lib/routes/home/routes/events/event-list-view/event-list-view.component.ts +++ b/project/ws/app/src/lib/routes/home/routes/events/event-list-view/event-list-view.component.ts @@ -233,15 +233,14 @@ export class EventListViewComponent implements OnInit, AfterViewInit, OnChanges, const finalURL = `${environment.contentHost}${mainUrl}` this.finalImg = img ? finalURL : '' - } - else { + } else { const mainUrl = img && img.split('/content').pop() || '' const finalURL = `${environment.contentHost}/${environment.contentBucket}/content${mainUrl}` this.finalImg = img ? finalURL : '' } this.dialogRef = this.matDialog.open(EventThumbnailComponent, { - width: "800px", + width: '800px', data: this.finalImg, }) } From 9b3adda8f34b7b212c72e09cc7f3d470c2a2cd9b Mon Sep 17 00:00:00 2001 From: dakshayini-krishnappa Date: Fri, 9 Feb 2024 11:08:18 +0530 Subject: [PATCH 2/2] comment issue fix --- .../routes/home/pipes/pipe-public-URL/pipe-public-URL.pipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/ws/app/src/lib/routes/home/pipes/pipe-public-URL/pipe-public-URL.pipe.ts b/project/ws/app/src/lib/routes/home/pipes/pipe-public-URL/pipe-public-URL.pipe.ts index b63713b3..2257ad63 100644 --- a/project/ws/app/src/lib/routes/home/pipes/pipe-public-URL/pipe-public-URL.pipe.ts +++ b/project/ws/app/src/lib/routes/home/pipes/pipe-public-URL/pipe-public-URL.pipe.ts @@ -18,7 +18,7 @@ export class PipePublicURL implements PipeTransform { const finalURL = `${environment.contentHost}${mainUrl}` return value ? finalURL : '' - } else { + } { const mainUrl = value && value.split('/content').pop() || '' const finalURL = `${environment.contentHost}/${environment.contentBucket}/content${mainUrl}` return value ? finalURL : ''