diff --git a/ppr-ui/package-lock.json b/ppr-ui/package-lock.json index 2279dfc87..fa81da8ac 100644 --- a/ppr-ui/package-lock.json +++ b/ppr-ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "ppr-ui", - "version": "3.2.13", + "version": "3.2.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ppr-ui", - "version": "3.2.13", + "version": "3.2.14", "dependencies": { "@bcrs-shared-components/input-field-date-picker": "^1.0.0", "@lemoncode/fonk": "^1.5.1", diff --git a/ppr-ui/package.json b/ppr-ui/package.json index 2d6e44195..b447c65e4 100644 --- a/ppr-ui/package.json +++ b/ppr-ui/package.json @@ -1,6 +1,6 @@ { "name": "ppr-ui", - "version": "3.2.13", + "version": "3.2.14", "private": true, "appName": "Assets UI", "sbcName": "SBC Common Components", diff --git a/ppr-ui/src/components/mhrRegistration/YourHome/HomeSections.vue b/ppr-ui/src/components/mhrRegistration/YourHome/HomeSections.vue index 252f88dc8..725cd75f1 100644 --- a/ppr-ui/src/components/mhrRegistration/YourHome/HomeSections.vue +++ b/ppr-ui/src/components/mhrRegistration/YourHome/HomeSections.vue @@ -102,7 +102,8 @@ export default defineComponent({ const { // Getters getMhrHomeSections, - getMhrRegistrationValidationModel + getMhrRegistrationValidationModel, + isMhrReRegistration } = storeToRefs(useStore()) const { @@ -125,7 +126,7 @@ export default defineComponent({ return getMhrHomeSections.value.length >= 1 }), numberOfSections: computed((): number => { - return isMhrCorrection.value + return isMhrCorrection.value || isMhrReRegistration.value ? getMhrHomeSections.value.filter(section => section.action !== ActionTypes.REMOVED).length : getMhrHomeSections.value.length }), @@ -140,7 +141,7 @@ export default defineComponent({ const addHomeSection = (homeSection: HomeSectionIF): void => { const homeSections = [...getMhrHomeSections.value] - if (isMhrCorrection.value) { + if (isMhrCorrection.value || isMhrReRegistration.value) { homeSection.action = ActionTypes.ADDED } // Add new home section to array @@ -153,7 +154,7 @@ export default defineComponent({ // Create edited homeSection without id const { ...editedSection } = homeSection - if (isMhrCorrection.value) { + if (isMhrCorrection.value || isMhrReRegistration.value) { correctHomeSection(editedSection) } // Apply edited section to temp array @@ -166,7 +167,7 @@ export default defineComponent({ const homeSections = [...getMhrHomeSections.value] const homeSectionIndex = homeSections.indexOf(homeSection) - if (isMhrCorrection.value) { + if (isMhrCorrection.value || isMhrReRegistration.value) { if (homeSection.action === ActionTypes.ADDED) { // for newly Added section - remove section completely homeSections.splice(homeSectionIndex, 1) diff --git a/ppr-ui/src/components/tables/mhr/HomeSectionsTable.vue b/ppr-ui/src/components/tables/mhr/HomeSectionsTable.vue index e38fb401c..588b7c801 100644 --- a/ppr-ui/src/components/tables/mhr/HomeSectionsTable.vue +++ b/ppr-ui/src/components/tables/mhr/HomeSectionsTable.vue @@ -7,7 +7,7 @@