From 37836c8bb9298e75da1688941674d6a2736b6da7 Mon Sep 17 00:00:00 2001 From: Dima K Date: Mon, 29 Jan 2024 11:25:40 -0800 Subject: [PATCH] Update cancel Transport Permit dialog (#1707) --- ppr-ui/package-lock.json | 4 ++-- ppr-ui/package.json | 2 +- ppr-ui/src/views/mhrInformation/MhrInformation.vue | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ppr-ui/package-lock.json b/ppr-ui/package-lock.json index 62b45226b..cd227016f 100644 --- a/ppr-ui/package-lock.json +++ b/ppr-ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "ppr-ui", - "version": "3.0.30", + "version": "3.0.31", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ppr-ui", - "version": "3.0.30", + "version": "3.0.31", "dependencies": { "@bcrs-shared-components/input-field-date-picker": "^1.0.0", "@lemoncode/fonk": "^1.5.1", diff --git a/ppr-ui/package.json b/ppr-ui/package.json index e7be1fa7b..d5d55ae47 100644 --- a/ppr-ui/package.json +++ b/ppr-ui/package.json @@ -1,6 +1,6 @@ { "name": "ppr-ui", - "version": "3.0.30", + "version": "3.0.31", "private": true, "appName": "Assets UI", "sbcName": "SBC Common Components", diff --git a/ppr-ui/src/views/mhrInformation/MhrInformation.vue b/ppr-ui/src/views/mhrInformation/MhrInformation.vue index b74e8c97e..b2606cf8c 100644 --- a/ppr-ui/src/views/mhrInformation/MhrInformation.vue +++ b/ppr-ui/src/views/mhrInformation/MhrInformation.vue @@ -1036,7 +1036,10 @@ export default defineComponent({ const handleIncompleteRegistrationsResp = async (val: boolean) => { if (!val) { setUnsavedChanges(false) - goToDashboard() + setEmptyMhrTransfer(initMhrTransfer()) + resetTransportPermit(true) + resetValidationState() + await scrollToFirstError(false, 'mhr-information-header') } localState.showIncompleteRegistrationDialog = false }