Skip to content

Commit

Permalink
Merge pull request #239 from bcgov/dev-AH-2864
Browse files Browse the repository at this point in the history
Ticket 2864. Adding alert if EAO ministry is selected by user.
  • Loading branch information
Aman-Hundal authored Jan 25, 2024
2 parents 6a62bf2 + 5c72f47 commit 41bc8b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ <h2>What ministry or agency has the records you are looking for?</h2>
before submitting your request.
</p>
</app-alert-info>
<app-alert-warning *ngIf="isEAOministry">
<p>
Before continuing to submit your FOI request, please note that the Environmental Assessment Office (EAO) is involved in <a href="https://www2.gov.bc.ca/gov/content/environment/natural-resource-stewardship/environmental-assessments/frequently-asked-questions">major projects</a> in B.C., such as industrial, energy, mines, water management, waste management, transportation and tourist destinations and resorts that meet the thresholds under the Reviewable Project Regulation of the Environmental Assessment Act. When a major project is proposed in British Columbia, it must undergo an Environmental Assessment (EA). All major projects are searchable on the Environmental Assessment Office Project Information Centre (EPIC) website at: <a href="https://projects.eao.gov.bc.ca/">EPIC</a>. If your request does not relate to a major project and/or is not found at this website, please consider submitting to the Ministry of Environment or other appropriate Ministries. For more information about the EAO, you may visit their website at: <a href="https://www2.gov.bc.ca/gov/content/environment/natural-resource-stewardship/environmental-assessments">https://www2.gov.bc.ca/gov/content/environment/natural-resource-stewardship/environmental-assessments</a>
</p>
</app-alert-warning>
<app-alert-warning *ngIf="isforestministry">
<p>
For FOI requests relating to wildfires, records might not be released if there is an active and ongoing investigation into the fire in order to protect the integrity of the investigation. If you have questions whether an FOI request relates to a wildfire under investigation please contact <a href="mailto:[email protected]">[email protected]</a> for more information before submitting the FOI request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class MinistryConfirmationComponent implements OnInit {
feeAmount: number = 0;
requiresPayment: boolean = null;
isforestministry: boolean = false;
isEAOministry: boolean = false;

constructor(private fb: FormBuilder, private dataService: DataService, private route: Router) { }

Expand All @@ -37,6 +38,7 @@ export class MinistryConfirmationComponent implements OnInit {
ministries.forEach(m => {
m.selected = m.defaulted = this.defaultMinistry && (m.code === this.defaultMinistry.code);
m.selected = m.selected || (selectedMinistry ? !!selectedMinistry.find(ms => ms.code === m.code) : false);
this.isEAOministry = m.code === "EAO" && m.selected === true;
if (m.code === "FOR" && m.selected === true) {
this.isforestministry = true;
}
Expand Down Expand Up @@ -65,6 +67,7 @@ export class MinistryConfirmationComponent implements OnInit {

selectMinistry(m: any) {
m.selected = !m.selected;
this.isEAOministry = m.code === "EAO" && m.selected === true;
if (m.code === "FOR" && m.selected === true) {
this.isforestministry = true;
}
Expand Down

0 comments on commit 41bc8b3

Please sign in to comment.