Skip to content

Commit

Permalink
Fix badges for Re-Registration flow as per UXA
Browse files Browse the repository at this point in the history
  • Loading branch information
dimak1 committed Jun 3, 2024
1 parent 4e9c2fd commit 9259231
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ppr-ui/package-lock.json

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

4 changes: 2 additions & 2 deletions ppr-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ppr-ui",
"version": "3.2.1",
"version": "3.2.2",
"private": true,
"appName": "Assets UI",
"sbcName": "SBC Common Components",
Expand All @@ -14,7 +14,7 @@
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@bcrs-shared-components/input-field-date-picker" : "^1.0.0",
"@bcrs-shared-components/input-field-date-picker": "^1.0.0",
"@lemoncode/fonk": "^1.5.1",
"@lemoncode/fonk-range-number-validator": "^1.1.0",
"@sentry/vue": "^7.50.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@
:currentState="amendedBadgeLocationType.currentState"
isCaseSensitive
/>
<UpdatedBadge
v-else-if="isMhrReRegistration"
class="mb-1"
:action="correctionState.action"
:baseline="correctionState.location.baseline"
:currentState="correctionState.location.currentState"
/>
</v-col>
<v-col
cols="9"
Expand Down Expand Up @@ -179,6 +186,13 @@
:currentState="amendedBadgeLocationType.currentState"
isCaseSensitive
/>
<UpdatedBadge
v-else-if="isMhrReRegistration"
class="mb-1"
:action="correctionState.action"
:baseline="correctionState.location.baseline"
:currentState="correctionState.location.currentState"
/>
</v-col>
<v-col
cols="9"
Expand Down Expand Up @@ -221,6 +235,13 @@
:currentState="amendedBadgeLocationType.currentState"
isCaseSensitive
/>
<UpdatedBadge
v-else-if="isMhrReRegistration"
class="mb-1"
:action="correctionState.action"
:baseline="correctionState.location.baseline"
:currentState="correctionState.location.currentState"
/>
</v-col>
<v-col
v-if="hasManualEntries"
Expand Down Expand Up @@ -422,7 +443,7 @@
>
<v-col>
<UpdatedBadge
v-if="showUpdatedBadge"
v-if="isMhrCorrection"
class="mb-1"
:action="correctionState.action"
:baseline="correctionState.location.baseline"
Expand Down Expand Up @@ -646,7 +667,8 @@ export default defineComponent({
getMhrOriginalTransportPermit,
getMhrOriginalTransportPermitHomeLocation,
getMhrTransportPermitPreviousLocation,
getMhrTransportPermitHomeLocation
getMhrTransportPermitHomeLocation,
isMhrReRegistration
} = storeToRefs(useStore())
const {
Expand Down Expand Up @@ -802,6 +824,7 @@ export default defineComponent({
isCancelChangeLocationActive,
correctionState,
isMhrCorrection,
isMhrReRegistration,
showUpdatedBadge,
...toRefs(localState)
}
Expand Down
6 changes: 3 additions & 3 deletions ppr-ui/src/views/newMhrRegistration/HomeLocation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
:locationTypeInfo="getMhrRegistrationLocation"
:validate="getValidation(MhrSectVal.REVIEW_CONFIRM_VALID, MhrCompVal.VALIDATE_STEPS)"
:class="{ 'border-error-left': validateLocationType }"
:updatedBadge="isMhrCorrection ? correctionState.location : null"
:updatedBadge="(isMhrCorrection || isMhrReRegistration) ? correctionState.location : null"
@setStoreProperty="setMhrLocation($event)"
@isValid="setValidation(MhrSectVal.LOCATION_VALID, MhrCompVal.LOCATION_TYPE_VALID, $event)"
/>
Expand All @@ -56,7 +56,7 @@
:schema="CivicAddressSchema"
:validate="validateCivicAddress"
:class="{ 'border-error-left': validateCivicAddress }"
:updatedBadge="isMhrCorrection ? correctionState.civicAddress : null"
:updatedBadge="(isMhrCorrection || isMhrReRegistration) ? correctionState.civicAddress : null"
@setStoreProperty="setCivicAddress('mhrRegistration', $event)"
@isValid="setValidation(MhrSectVal.LOCATION_VALID, MhrCompVal.CIVIC_ADDRESS_VALID, $event)"
/>
Expand All @@ -79,7 +79,7 @@
description: 'Is the manufactured home located on land that the homeowners own or on ' +
'land that they have a registered lease of 3 years or more?'
}"
:updatedBadge="isMhrCorrection ? correctionState.landDetails : null"
:updatedBadge="(isMhrCorrection || isMhrReRegistration) ? correctionState.landDetails : null"
@setStoreProperty="setMhrRegistrationOwnLand($event)"
@isValid="setValidation(MhrSectVal.LOCATION_VALID, MhrCompVal.LAND_DETAILS_VALID, $event)"
/>
Expand Down

0 comments on commit 9259231

Please sign in to comment.