Parcel #{{ parcelInd + 1 }}: Parcel and Owner Information
diff --git a/alcs-frontend/src/app/features/notice-of-intent/applicant-info/notice-of-intent-details/parcel/parcel.component.ts b/alcs-frontend/src/app/features/notice-of-intent/applicant-info/notice-of-intent-details/parcel/parcel.component.ts
index ca6bc66ff3..a29bbf4b6d 100644
--- a/alcs-frontend/src/app/features/notice-of-intent/applicant-info/notice-of-intent-details/parcel/parcel.component.ts
+++ b/alcs-frontend/src/app/features/notice-of-intent/applicant-info/notice-of-intent-details/parcel/parcel.component.ts
@@ -11,7 +11,7 @@ import {
import { PARCEL_OWNERSHIP_TYPE } from '../../../../../shared/dto/parcel-ownership.type.dto';
@Component({
- selector: 'app-parcel',
+ selector: 'app-parcel[noticeOfIntent][files]',
templateUrl: './parcel.component.html',
styleUrls: ['./parcel.component.scss'],
})
@@ -19,10 +19,10 @@ export class ParcelComponent implements OnInit, OnChanges, OnDestroy, AfterConte
$destroy = new Subject
();
@Input() noticeOfIntent!: NoticeOfIntentSubmissionDto;
- @Input() files: NoticeOfIntentDocumentDto[] = [];
+ @Input() files!: NoticeOfIntentDocumentDto[];
fileId: string = '';
- parcels: NoticeOfIntentParcelDto[] = [];
+ parcels: NoticeOfIntentParcelDto[] | undefined;
PARCEL_OWNERSHIP_TYPES = PARCEL_OWNERSHIP_TYPE;
private anchorededParcelUuid: string | undefined;
@@ -45,6 +45,8 @@ export class ParcelComponent implements OnInit, OnChanges, OnDestroy, AfterConte
const file = this.files.find((file) => file.uuid === uuid);
if (file) {
await this.noiDocumentService.download(file.uuid, file.fileName);
+ } else {
+ console.error('Failed to find File in Array');
}
}
diff --git a/alcs-frontend/src/app/features/notice-of-intent/proposal/parcel-prep/parcel-prep.component.html b/alcs-frontend/src/app/features/notice-of-intent/proposal/parcel-prep/parcel-prep.component.html
index 8746b4d52f..020932bf98 100644
--- a/alcs-frontend/src/app/features/notice-of-intent/proposal/parcel-prep/parcel-prep.component.html
+++ b/alcs-frontend/src/app/features/notice-of-intent/proposal/parcel-prep/parcel-prep.component.html
@@ -1,4 +1,7 @@
-
+
+
+
+
diff --git a/alcs-frontend/src/app/features/notice-of-intent/proposal/parcel-prep/parcel-prep.component.ts b/alcs-frontend/src/app/features/notice-of-intent/proposal/parcel-prep/parcel-prep.component.ts
index 5f59f9c594..c184d7dfbc 100644
--- a/alcs-frontend/src/app/features/notice-of-intent/proposal/parcel-prep/parcel-prep.component.ts
+++ b/alcs-frontend/src/app/features/notice-of-intent/proposal/parcel-prep/parcel-prep.component.ts
@@ -11,16 +11,18 @@ export class ParcelPrepComponent implements OnChanges {
@Input() fileNumber = '';
displayedColumns = ['number', 'pid', 'pin', 'civicAddress', 'area', 'alrArea', 'owners', 'actions'];
- parcels: {
- pin?: string;
- pid?: string;
- mapAreaHectares: string;
- alrArea: number;
- owners: string;
- fullOwners: string;
- hasManyOwners: boolean;
- uuid: string;
- }[] = [];
+ parcels:
+ | {
+ pin?: string;
+ pid?: string;
+ mapAreaHectares: string;
+ alrArea: number;
+ owners: string;
+ fullOwners: string;
+ hasManyOwners: boolean;
+ uuid: string;
+ }[]
+ | undefined;
constructor(
private parcelService: NoticeOfIntentParcelService,
diff --git a/portal-frontend/src/app/features/applications/view-submission/view-application-submission.component.html b/portal-frontend/src/app/features/applications/view-submission/view-application-submission.component.html
index f0753399b8..c79c849dfc 100644
--- a/portal-frontend/src/app/features/applications/view-submission/view-application-submission.component.html
+++ b/portal-frontend/src/app/features/applications/view-submission/view-application-submission.component.html
@@ -33,6 +33,9 @@ Application ID: {{ application.fileNumber }}