From f92e06a33528223a237334a700b50322d004d58f Mon Sep 17 00:00:00 2001 From: Sandra To Date: Wed, 27 Sep 2023 15:13:58 -0700 Subject: [PATCH] Fix Applicant Info parcel section to view and open files --- .../application-details/parcel/parcel.component.html | 4 ++-- .../application-details/parcel/parcel.component.ts | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/parcel/parcel.component.html b/alcs-frontend/src/app/features/application/applicant-info/application-details/parcel/parcel.component.html index 2847f9dcd6..b5f7fc2641 100644 --- a/alcs-frontend/src/app/features/application/applicant-info/application-details/parcel/parcel.component.html +++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/parcel/parcel.component.html @@ -71,7 +71,7 @@

Parcel {{ parcelInd + 1 }}: Parcel and Owner Information<
Certificate Of Title
Owner Information
@@ -92,7 +92,7 @@

Parcel {{ parcelInd + 1 }}: Parcel and Owner Information<
{{ owner.phoneNumber }}
{{ owner.email }}
- {{ + {{ owner.corporateSummary.fileName }}
diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/parcel/parcel.component.ts b/alcs-frontend/src/app/features/application/applicant-info/application-details/parcel/parcel.component.ts index c003aab01b..d8567b3ce0 100644 --- a/alcs-frontend/src/app/features/application/applicant-info/application-details/parcel/parcel.component.ts +++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/parcel/parcel.component.ts @@ -47,11 +47,8 @@ export class ParcelComponent implements OnInit, OnChanges, OnDestroy, AfterConte }); } - async onOpenFile(uuid: string) { - const file = this.files.find((file) => file.uuid === uuid); - if (file) { - await this.applicationDocumentService.download(file.uuid, file.fileName); - } + async openFile(file: ApplicationDocumentDto) { + await this.applicationDocumentService.download(file.uuid, file.fileName); } async loadParcels(fileNumber: string) {