Skip to content

Commit

Permalink
remove year label for renew app brand new application, hide view appl…
Browse files Browse the repository at this point in the history
…ication button when PCF is unlocked
  • Loading branch information
jenbeckett committed Dec 15, 2023
1 parent 47848a1 commit c7a0ae8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/LandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<p class="text-h5 blueText mb-0" v-if="ccofStatus === CCOF_STATUS_APPROVED">Status of your funding agreement for the current fiscal year: Active</p>
<p class="text-h5 blueText mb-0" v-else>Status: Submitted</p>
<v-btn dark class="blueButton mt-4" @click="viewApplication('NEW')" v-if="applicationType === 'NEW'">View Application</v-btn>
<v-btn dark class="blueButton" @click="viewApplication('RENEW')" v-else-if="applicationType === 'RENEW' && applicationStatus === 'SUBMITTED'">View Application</v-btn>
<v-btn dark class="blueButton" @click="viewApplication('RENEW')" v-else-if="applicationType === 'RENEW' && applicationStatus === 'SUBMITTED' && ccofRenewStatus != RENEW_STATUS_ACTION_REQUIRED">View Application</v-btn>
</div>
<p class="mt-4">Fiscal year runs April 1 to March 31</p>
<router-link v-if="isSubmissionHistoryDisplayed" class='text-decoration-underline' :to="PATHS.ROOT.SUBMISSION_HISTORY">
Expand Down Expand Up @@ -312,13 +312,13 @@ export default {
...mapState('navBar', ['navBarList']),
...mapState('organization', ['fundingAgreementNumber', 'organizationAccountNumber', 'organizationProviderType', 'organizationId', 'organizationName', 'organizationAccountNumber']),
...mapState('application', ['applicationType', 'programYearId', 'programYearLabel', 'ccofApplicationStatus', 'unlockBaseFunding', 'isRenewal',
'unlockDeclaration', 'unlockEcewe', 'unlockLicenseUpload', 'unlockSupportingDocuments', 'applicationStatus', 'applicationMap']),
'unlockDeclaration', 'unlockEcewe', 'unlockLicenseUpload', 'unlockSupportingDocuments', 'applicationStatus', 'applicationMap', 'applicationId']),
...mapState('reportChanges', ['changeRequestStore']),
getRenewYearLabel(){
console.log('sss');
console.log(this.applicationType);
console.log(this.ccofRenewStatus);
if (this.applicationType == "NEW" && this.applicationStatus == "DRAFT" ){
if (this.applicationType == "NEW" && this.applicationStatus == "DRAFT" || (!this.applicationId)){
console.log('no year');
return "";
}
Expand Down

0 comments on commit c7a0ae8

Please sign in to comment.