Skip to content

Commit 6e07e90

Browse files
authored
Release 2.5.1 - CCFRI-6784 - ECE-WE Funding Guidelines Link Update (#946)
* added ecewe funding guidelines url from backend * pr suggestions
1 parent 5f03b64 commit 6e07e90

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

backend/src/util/mapping/Mappings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ const UserProfileChangeRequestNewFacilityMappings = [
427427
const ProgramYearMappings = [
428428
{ back: '_ccof_previousyear_value', front: 'previousYearId' },
429429
{ back: 'ccof_bcssa_link', front: 'bcssaUrl' },
430+
{ back: 'ccof_ecewe_funding_guidelines', front: 'eceweFundingGuidelinesUrl' },
430431
{ back: 'ccof_ccfri_funding_guidelines', front: 'fundingGuidelinesUrl' },
431432
{ back: 'ccof_ccof_application_template_version', front: 'applicationTemplateVersion' },
432433
{ back: 'ccof_declarationbstart', front: 'declarationbStart' },

frontend/src/components/eceweApplication/EceweEligibility.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
1111
<v-icon color="primary" size="x-large">mdi-information</v-icon>
1212
</template>
1313
<strong>Note:</strong> Please read and understand the full eligibility requirements in the
14-
<a
15-
href="https://www2.gov.bc.ca/gov/content/family-social-supports/caring-for-young-children/childcarebc-programs/wage-enhancement"
16-
target="_blank"
17-
class="text-decoration-underline"
18-
>
19-
ECE-WE Funding Guidelines</a
20-
>. All CCFRI-eligible facilities must opt-in to CCFRI <strong>to be eligible for ECE-WE.</strong>
14+
15+
<a :href="eceweFundingUrl" target="_blank" class="text-decoration-underline"> ECE-WE Funding Guidelines</a>. All
16+
CCFRI-eligible facilities must opt-in to CCFRI <strong>to be eligible for ECE-WE.</strong>
2117
</v-alert>
2218

2319
<v-skeleton-loader v-if="isLoading" :loading="isLoading" type="table-tbody" class="my-2"></v-skeleton-loader>
@@ -104,7 +100,7 @@ export default {
104100
computed: {
105101
...mapState(useAuthStore, ['userInfo']),
106102
...mapState(useEceweAppStore, ['isStarted', 'eceweModel']),
107-
...mapState(useAppStore, ['fundingModelTypeList', 'getLanguageYearLabel']),
103+
...mapState(useAppStore, ['fundingModelTypeList', 'getLanguageYearLabel', 'getEceweFundingUrl']),
108104
...mapState(useNavBarStore, ['navBarList', 'changeRequestId', 'previousPath', 'isChangeRequest']),
109105
...mapState(useApplicationStore, [
110106
'formattedProgramYear',
@@ -117,6 +113,9 @@ export default {
117113
...mapState(useOrganizationStore, ['organizationProviderType']),
118114
...mapState(useReportChangesStore, ['loadedChangeRequest', 'isEceweUnlocked', 'changeRequestStatus']),
119115
116+
eceweFundingUrl() {
117+
return this.getEceweFundingUrl(this.programYearId);
118+
},
120119
filteredECEWEFacilityList() {
121120
const eceweAppStore = useEceweAppStore();
122121
if (this.isChangeRequest) {

frontend/src/store/app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ export const useAppStore = defineStore('app', {
131131
getApplicationTemplateVersion: (state) => (programYearId) => {
132132
return state?.programYearList.list.find((el) => el.programYearId === programYearId)?.applicationTemplateVersion;
133133
},
134+
getEceweFundingUrl: (state) => (programYearId) => {
135+
return state?.programYearList.list.find((el) => el.programYearId === programYearId)?.eceweFundingGuidelinesUrl;
136+
},
134137
getFundingUrl: (state) => (programYearId) => {
135138
return state?.programYearList.list.find((el) => el.programYearId === programYearId)?.fundingGuidelinesUrl;
136139
},

0 commit comments

Comments
 (0)