Skip to content

Commit

Permalink
- added affidavit file to summary section
Browse files Browse the repository at this point in the history
- updated isContinuationInValid getter
- added Court Order/POA component to review page
- imported fixed shared DatePicker component
- updated validation triggers
- reactively set homeJurisdiction objects
- wait for form to show before validating it
- misc logic cleanup
- deleted unneeded Empty Existing Business Info object
- updated initial value in store state
  • Loading branch information
Severin Beauvais committed May 27, 2024
1 parent dd48c29 commit 8f4a21a
Show file tree
Hide file tree
Showing 16 changed files with 265 additions and 255 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@bcrs-shared-components/corp-type-module": "1.0.16",
"@bcrs-shared-components/correct-name": "1.0.46",
"@bcrs-shared-components/court-order-poa": "3.0.11",
"@bcrs-shared-components/date-picker": "1.2.55",
"@bcrs-shared-components/date-picker": "1.3.0",
"@bcrs-shared-components/document-delivery": "1.2.0",
"@bcrs-shared-components/effective-date-time": "1.1.15",
"@bcrs-shared-components/enums": "1.1.10",
Expand Down
12 changes: 5 additions & 7 deletions src/components/ContinuationIn/ContinuationAuthorization.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

<div class="pt-4" />

<!-- file upload component(s) -->
<!-- file upload components -->
<v-row
v-for="(num, index) in numUploads"
:key="authorization.files[index]?.fileKey"
Expand Down Expand Up @@ -174,10 +174,8 @@ export default class ExtraproRegistration extends Mixins(DocumentMixin) {
return [
() => !!this.authorization.date ||
'Authorization Date is required',
() => {
return (this.authorization.date <= this.getCurrentDate) ||
'Authorization Date cannot be in the future'
}
() => (this.authorization.date <= this.getCurrentDate) ||
'Authorization Date cannot be in the future'
]
}
Expand Down Expand Up @@ -217,7 +215,7 @@ export default class ExtraproRegistration extends Mixins(DocumentMixin) {
// verify that file is valid
if (!this.fileValidity) {
// NB: as this is validity according to the component, do not overwrite current error message
return // don't add to list
return // don't add to array
}
// verify that file doesn't already exist
Expand All @@ -238,7 +236,7 @@ export default class ExtraproRegistration extends Mixins(DocumentMixin) {
// put file uploader into manual error mode by setting custom error message
this.customErrorMessage[index] = this.UPLOAD_FAILED_MESSAGE
this.$forceUpdate() // force file upload component to react
return // don't add to list
return // don't add to array
}
// add file to array
Expand Down
10 changes: 7 additions & 3 deletions src/components/ContinuationIn/ExtraproBusinessLookup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@
cols="3"
class="result-identifier d-inline-flex"
>
{{ item.identifier }}
<!-- *** TODO: remove after testing: -->
({{ item.status?.charAt(0) }})
<span>{{ item.identifier }}</span>
<span v-if="showBusinessSearchStatus">&nbsp;({{ item.status?.charAt(0) }})</span>
</v-col>

<v-col
Expand Down Expand Up @@ -64,6 +63,7 @@ import { Component, Emit, Watch } from 'vue-property-decorator'
import { debounce } from 'lodash'
import { BusinessLookupResultIF } from '@/interfaces'
import { BusinessLookupServices } from '@/services'
import { GetFeatureFlag } from '@/utils/feature-flag-utils'
/* eslint-disable no-unused-vars */
enum States {
Expand Down Expand Up @@ -91,6 +91,10 @@ export default class ExtraproBusinessLookup extends Vue {
readonly businessLookupLabel = 'Extraprovincial registration number or name of the business in B.C.'
get showBusinessSearchStatus (): boolean {
return Boolean(GetFeatureFlag('show-business-search-status'))
}
/** Called when Search Input has been updated. */
onSearchInput (searchInput: string) {
this.onSearchInputDebounced(this, searchInput)
Expand Down
Loading

0 comments on commit 8f4a21a

Please sign in to comment.