Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev to Master. Ticket 2864 #241

Merged
merged 4 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/">https://projects.eao.gov.bc.ca/</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,12 @@ 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);
if (m.code === "EAO" && m.selected === true) {
this.isEAOministry = true;
}
else if(m.code === "EAO" && m.selected === false){
this.isEAOministry = false;
}
if (m.code === "FOR" && m.selected === true) {
this.isforestministry = true;
}
Expand Down Expand Up @@ -65,6 +72,12 @@ export class MinistryConfirmationComponent implements OnInit {

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