File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
frontend/src/views/applications Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 103
103
</template >
104
104
105
105
<template #item .actions =" { item } " >
106
- <p v-if =" !facilityMayOpenApplication (item.facilityId )" >No Intake Available</p >
106
+ <p v-if =" !facilityMayContinueDraft (item)" >No Intake Available</p >
107
107
<router-link v-else-if =" item.applicationType !== APPLICATION_TYPES.IRREGULAR_EXPENSE" :to =" getActionsRoute(item)" >
108
108
{{ getApplicationAction(item) }}
109
109
</router-link >
@@ -418,7 +418,9 @@ export default {
418
418
this .applications .push (... this .redirectedApplications )
419
419
},
420
420
421
- facilityMayOpenApplication (facilityId ) {
421
+ facilityMayContinueDraft (applicationItem ) {
422
+ const { facilityId , statusCode } = applicationItem
423
+ if (statusCode !== APPLICATION_STATUS_CODES .DRAFT ) return true
422
424
return this .userInfo .facilities .find ((f ) => f .facilityId === facilityId)? .intakeWindowCheckForAddApplication || false
423
425
},
424
426
You can’t perform that action at this time.
0 commit comments