Skip to content

Commit

Permalink
Remove building plans from public view
Browse files Browse the repository at this point in the history
  • Loading branch information
trslater committed Nov 4, 2024
1 parent 3ae8fde commit 2d88d5f
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,16 +289,6 @@
</div>
</ng-container>

<ng-container *ngIf="applicationSubmission.soilIsNewStructure === true">
<div class="subheading2 grid-1">Detailed Building Plan(s)</div>
<div class="grid-double multiple-documents">
<a *ngFor="let file of buildingPlans" (click)="openFile(file)">
{{ file.fileName }}
</a>
<app-no-data *ngIf="buildingPlans.length === 0"></app-no-data>
</div>
</ng-container>

<ng-container *ngIf="applicationSubmission.soilIsNewStructure === false">
<div class="subheading2 grid-1">Is your proposal for aggregate extraction or placer mining?</div>
<div class="grid-double">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ export class PfrsDetailsComponent {
this.crossSections = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.CROSS_SECTIONS);
this.proposalMap = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.PROPOSAL_MAP);
this.reclamationPlans = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.RECLAMATION_PLAN);
this.buildingPlans = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.BUILDING_PLAN);
}

crossSections: PublicDocumentDto[] = [];
proposalMap: PublicDocumentDto[] = [];
reclamationPlans: PublicDocumentDto[] = [];
buildingPlans: PublicDocumentDto[] = [];

constructor(private router: Router, private publicService: PublicService) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,6 @@
<app-no-data *ngIf="proposalMap.length === 0"></app-no-data>
</div>

<ng-container *ngIf="applicationSubmission.soilIsNewStructure === true">
<div class="subheading2 grid-1">Detailed Building Plan(s)</div>
<div class="grid-double multiple-documents">
<a *ngFor="let file of buildingPlans" (click)="openFile(file)">
{{ file.fileName }}
</a>
<app-no-data *ngIf="buildingPlans.length === 0"></app-no-data>
</div>
</ng-container>

<ng-container *ngIf="applicationSubmission.soilIsNewStructure === false">
<div class="subheading2 grid-1">Cross Sections</div>
<div class="grid-double multiple-documents">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@ export class PofoDetailsComponent {
@Input() set applicationDocuments(documents: PublicDocumentDto[]) {
this.crossSections = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.CROSS_SECTIONS);
this.proposalMap = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.PROPOSAL_MAP);
this.buildingPlans = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.BUILDING_PLAN);
}

crossSections: PublicDocumentDto[] = [];
proposalMap: PublicDocumentDto[] = [];
buildingPlans: PublicDocumentDto[] = [];

constructor(private router: Router, private publicService: PublicService) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,16 +205,6 @@
<app-no-data *ngIf="proposalMap.length === 0"></app-no-data>
</div>

<ng-container *ngIf="applicationSubmission.soilIsNewStructure === true">
<div class="subheading2 grid-1">Detailed Building Plan(s)</div>
<div class="grid-double multiple-documents">
<a *ngFor="let file of buildingPlans" (click)="openFile(file)">
{{ file.fileName }}
</a>
<app-no-data *ngIf="buildingPlans.length === 0"></app-no-data>
</div>
</ng-container>

<ng-container *ngIf="applicationSubmission.soilIsNewStructure === false">
<div class="subheading2 grid-1">Cross Sections</div>
<div class="grid-double multiple-documents">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@ export class RosoDetailsComponent {
@Input() set applicationDocuments(documents: PublicDocumentDto[]) {
this.crossSections = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.CROSS_SECTIONS);
this.proposalMap = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.PROPOSAL_MAP);
this.buildingPlans = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.BUILDING_PLAN);
}

crossSections: PublicDocumentDto[] = [];
proposalMap: PublicDocumentDto[] = [];
buildingPlans: PublicDocumentDto[] = [];

constructor(private router: Router, private publicService: PublicService) {}

Expand Down

0 comments on commit 2d88d5f

Please sign in to comment.