Skip to content

Commit

Permalink
show error msg if there is no removed owner for transfer to joint ten…
Browse files Browse the repository at this point in the history
…ancy
  • Loading branch information
flutistar committed Aug 22, 2024
1 parent 84efde9 commit c1ca697
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 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.

2 changes: 1 addition & 1 deletion ppr-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ppr-ui",
"version": "3.2.45",
"version": "3.2.46",
"private": true,
"appName": "Assets UI",
"sbcName": "SBC Common Components",
Expand Down
10 changes: 8 additions & 2 deletions ppr-ui/src/views/newMhrRegistration/HomeOwners.vue
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ import {
} from '@/composables'
import { MhrRegistrationHomeOwnerGroupIF } from '@/interfaces'
import { ActionTypes, RouteNames } from '@/enums'
import { ActionTypes, RouteNames, UITransferTypes } from '@/enums'
import { transfersErrors } from '@/resources'
import { formatCurrency } from '@/utils'
Expand Down Expand Up @@ -497,11 +497,13 @@ export default defineComponent({
enableHomeOwnerChanges,
enableAddHomeOwners,
enableDeleteAllGroupsActions,
isTransferToSurvivingJointTenant,
isTransferDueToDeath,
isTransferToExecutorProbateWill,
isTransferToExecutorUnder25Will,
isTransferToAdminNoWill,
TransToExec
TransToExec,
TransJointTenants
} = useTransferOwners(!props.isMhrTransfer)
const {
Expand Down Expand Up @@ -596,6 +598,10 @@ export default defineComponent({
(showGroups && getTotalOwnershipAllocationStatus.value.hasMinimumGroupsError && localState.showTotalOwnership)
}),
changesRequired: computed((): boolean => {
// If the transfer type is "Transfer to Surviving Joint Tenant(s)", at least one owners needs to be removed
if(isTransferToSurvivingJointTenant.value){
return !TransJointTenants.isValidTransfer.value
}
return props.validateTransfer && !hasUnsavedChanges.value
}),
showPreviousHomeOwners: computed((): boolean =>
Expand Down

0 comments on commit c1ca697

Please sign in to comment.