Skip to content

Commit

Permalink
Refactored race condition msg in template (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds authored Apr 10, 2024
1 parent b678fd1 commit 577280c
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions ppr-ui/src/views/mhrInformation/MhrInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,25 +94,6 @@
Necessary fees will be applied as updates are made.
</p>

<!-- Frozen msg for Qualified Suppliers when Mhr is frozen due to Affe -->
<CautionBox
v-if="showInProgressMsg"
class="mt-9"
setAlert
setMsg="There is a transaction already in progress for this home by another user. You will be unable
to make any changes to this home until the current transaction has been completed. Please try again
later."
>
<template #prependSLot>
<v-icon
color="error"
class="mr-2 mt-n1"
>
mdi-alert
</v-icon>
</template>
</CautionBox>

<!-- Unit Note Info -->
<p
v-if="isExemptMhr"
Expand Down Expand Up @@ -172,8 +153,27 @@
</v-col>
</v-row>

<!-- Frozen msg for Qualified Suppliers when Mhr is frozen due to Affe -->
<CautionBox
v-if="isReviewMode &&
v-if="showInProgressMsg"
class="mt-9"
setAlert
setMsg="There is a transaction already in progress for this home by another user. You will be unable
to make any changes to this home until the current transaction has been completed. Please try again
later."
>
<template #prependSLot>
<v-icon
color="error"
class="mr-2 mt-n1"
>
mdi-alert
</v-icon>
</template>
</CautionBox>

<CautionBox
v-else-if="isReviewMode &&
!isTransferToExecutorProbateWill &&
!isTransferDueToDeath &&
!isChangeLocationActive"
Expand Down Expand Up @@ -1110,9 +1110,9 @@ export default defineComponent({
if (!isRoleStaffReg.value && !!regSum && regSum.frozenDocumentType === MhApiFrozenDocumentTypes.TRANS_AFFIDAVIT)
{
await scrollToFirstError(true)
localState.hasTransactionInProgress = true
localState.submitBtnLoading = false
await scrollToFirstError(true)
return
}
Expand Down

0 comments on commit 577280c

Please sign in to comment.