Skip to content

Commit

Permalink
Merge pull request #381 from bcgov/bug-fix-licence-detail
Browse files Browse the repository at this point in the history
OMFCC-6318 - Bug fix Licence Detail for Provider having Multiple type
  • Loading branch information
vietle-cgi authored Oct 10, 2024
2 parents 2016277 + c586ad1 commit 488c104
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
1 change: 0 additions & 1 deletion frontend/src/views/applications/ApplicationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export default {
save: false,
submit: false,
showCancelDialog: false,
facility: {},
contacts: [],
}
},
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/views/applications/FacilityDetailsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,6 @@ export default {
type: Boolean,
default: false,
},
facility: {
type: Object,
default: () => {
return {}
},
},
contacts: {
type: Array,
default: () => [],
Expand Down
13 changes: 6 additions & 7 deletions frontend/src/views/applications/ServiceDeliveryView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,6 @@ export default {
type: Boolean,
default: false,
},
facility: {
type: Object,
default: () => {
return {}
},
},
},
emits: ['process'],
Expand Down Expand Up @@ -181,7 +175,12 @@ export default {
},
isLicenceDetailsEditable() {
return !this.readonly && this.facility?.programCode === OFM_PROGRAM_CODES.MULTIPLE && !this.facility?.facilityReviewComplete && !this.currentApplication?.applicationReviewComplete
return (
!this.readonly &&
this.currentApplication?.facility?.programCode === OFM_PROGRAM_CODES.MULTIPLE &&
!this.currentApplication?.facility?.facilityReviewComplete &&
!this.currentApplication?.applicationReviewComplete
)
},
isHealthAuthorityReportsUploaded() {
Expand Down

0 comments on commit 488c104

Please sign in to comment.