Skip to content

Commit

Permalink
clean up:
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds committed Oct 16, 2024
1 parent b2e83d7 commit 2b206c6
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions ppr-ui/src/views/mhrInformation/MhrInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1506,21 +1506,16 @@ export default defineComponent({
localState.showTransferType = !localState.showTransferType
}
const resetPermitState = () => {
resetValidationState()
resetMhrInformation()
resetTransportPermit(true)
localState.validate = false
}
const handleCancelTransportPermitChanges = (showConfirmationDialog = true) => {
if (hasUnsavedChanges.value && showConfirmationDialog) {
// show dialog
localState.showCancelTransportPermitDialog = true
} else {
console.log('Cancel Called')
// reset validation and close dialog
resetPermitState()
resetValidationState()
resetMhrInformation()
resetTransportPermit(true)
localState.validate = false
}
}
Expand Down

0 comments on commit 2b206c6

Please sign in to comment.