diff --git a/frontend/src/components/LandingPage.vue b/frontend/src/components/LandingPage.vue index 7ffe2d07..b7b98dec 100644 --- a/frontend/src/components/LandingPage.vue +++ b/frontend/src/components/LandingPage.vue @@ -112,7 +112,8 @@ @@ -132,6 +133,7 @@
+ Renew my Funding Agreement Continue Renewal Update your PCF @@ -312,6 +314,29 @@ export default { ...mapState('application', ['applicationType', 'programYearId', 'programYearLabel', 'ccofApplicationStatus', 'unlockBaseFunding', 'isRenewal', 'unlockDeclaration', 'unlockEcewe', 'unlockLicenseUpload', 'unlockSupportingDocuments', 'applicationStatus', 'applicationMap']), ...mapState('reportChanges', ['changeRequestStore']), + getRenewYearLabel(){ + console.log('sss'); + console.log(this.applicationType); + console.log(this.ccofRenewStatus); + if (this.applicationType == "NEW" && this.applicationStatus == "DRAFT" ){ + console.log('no year'); + return ""; + } + //show the year ahead because we can't pull from application year YET + else if (this.ccofRenewStatus === this.RENEW_STATUS_NEW){ + console.log(this.programYearList?.list); + let nameToReturn = this.programYearList?.list?.find(el => el.previousYearId == this.latestProgramYearId)?.name; + console.log('///////////////'); + console.log(nameToReturn); + console.log(nameToReturn.substring(0,7)); + return nameToReturn?.substring(0,7); + } + + else if (this.ccofRenewStatus === this.RENEW_STATUS_CONTINUE || this.ccofRenewStatus === this.RENEW_STATUS_ACTION_REQUIRED ){ + return this.formattedProgramYear; + } + return this.formattedProgramYear; + }, getActionRequiredApplicationsForCCOFCard() { const applicationList = Array.from(this.applicationMap?.values()); return applicationList?.filter(application => { @@ -343,6 +368,7 @@ export default { return isEnabled; }, isRenewEnabled() { + console.log('can renew?: ' , this.isWithinRenewDate); if (this.applicationType === 'NEW') { if (this.applicationStatus === 'DRAFT') { return false;