From 7444d154b9cca1d1746397980fd0a3ca9bca9a7b Mon Sep 17 00:00:00 2001 From: Brandon Galli <54678642+flutistar@users.noreply.github.com> Date: Sat, 24 Aug 2024 00:25:46 +0800 Subject: [PATCH] show error msg if there is no removed owner for transfer to joint tenancy (#2007) --- ppr-ui/src/views/newMhrRegistration/HomeOwners.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ppr-ui/src/views/newMhrRegistration/HomeOwners.vue b/ppr-ui/src/views/newMhrRegistration/HomeOwners.vue index 272b1b79c..0bc7ba2ba 100644 --- a/ppr-ui/src/views/newMhrRegistration/HomeOwners.vue +++ b/ppr-ui/src/views/newMhrRegistration/HomeOwners.vue @@ -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' @@ -497,11 +497,13 @@ export default defineComponent({ enableHomeOwnerChanges, enableAddHomeOwners, enableDeleteAllGroupsActions, + isTransferToSurvivingJointTenant, isTransferDueToDeath, isTransferToExecutorProbateWill, isTransferToExecutorUnder25Will, isTransferToAdminNoWill, - TransToExec + TransToExec, + TransJointTenants } = useTransferOwners(!props.isMhrTransfer) const { @@ -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 =>