Skip to content

Commit

Permalink
Adjusted logic as there was a bug + adjusted message
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-Hundal committed Jan 25, 2024
1 parent 5c72f47 commit c5310e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h2>What ministry or agency has the records you are looking for?</h2>
</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>
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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +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);
this.isEAOministry = m.code === "EAO" && m.selected === true;
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 @@ -67,7 +72,12 @@ export class MinistryConfirmationComponent implements OnInit {

selectMinistry(m: any) {
m.selected = !m.selected;
this.isEAOministry = m.code === "EAO" && m.selected === true;
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

0 comments on commit c5310e1

Please sign in to comment.