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 (#2007)
  • Loading branch information
flutistar authored Aug 23, 2024
1 parent b71479b commit 7444d15
Showing 1 changed file with 8 additions and 2 deletions.
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 7444d15

Please sign in to comment.