From 1d35b2809c48a0ab34ffad610b60c8150d8dd7ef Mon Sep 17 00:00:00 2001 From: Dima K Date: Thu, 7 Mar 2024 10:21:21 -0800 Subject: [PATCH] Update Confirm Completion copy for Transport Permit (#1772) Update Confirm Completion text for Transport Permits --- ppr-ui/package-lock.json | 4 +- ppr-ui/package.json | 2 +- .../mhrTransfers/ConfirmCompletion.vue | 11 +++- .../AmendTransportPermitConfirmCompletion.vue | 65 +++++++++++++++++++ .../ConfirmCompletionContent/index.ts | 1 + .../views/mhrInformation/MhrInformation.vue | 7 +- 6 files changed, 83 insertions(+), 7 deletions(-) create mode 100644 ppr-ui/src/components/mhrTransportPermit/ConfirmCompletionContent/AmendTransportPermitConfirmCompletion.vue diff --git a/ppr-ui/package-lock.json b/ppr-ui/package-lock.json index e43d078dc..799ed610b 100644 --- a/ppr-ui/package-lock.json +++ b/ppr-ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "ppr-ui", - "version": "3.0.58", + "version": "3.0.59", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ppr-ui", - "version": "3.0.58", + "version": "3.0.59", "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 4ab9bd2e0..ffbbc4c9d 100644 --- a/ppr-ui/package.json +++ b/ppr-ui/package.json @@ -1,6 +1,6 @@ { "name": "ppr-ui", - "version": "3.0.58", + "version": "3.0.59", "private": true, "appName": "Assets UI", "sbcName": "SBC Common Components", diff --git a/ppr-ui/src/components/mhrTransfers/ConfirmCompletion.vue b/ppr-ui/src/components/mhrTransfers/ConfirmCompletion.vue index bc8691803..dc23c6e24 100644 --- a/ppr-ui/src/components/mhrTransfers/ConfirmCompletion.vue +++ b/ppr-ui/src/components/mhrTransfers/ConfirmCompletion.vue @@ -329,7 +329,11 @@ data-test-id="confirm-checkbox-label" :class="{ 'error-text': showErrorComponent }" > - I, {{ legalName }}, + I, {{ legalName }}, + confirm that I am duly authorized to submit this Transport Permit and I + understand the conditions and have completed the requirements listed above. + + I, {{ legalName }}, confirm that I am duly authorized to submit this registration and I understand the conditions and have completed the requirements listed above. @@ -387,13 +391,16 @@ export default defineComponent({ const { isChangeLocationActive, - isChangeLocationEnabled + isChangeLocationEnabled, + isAmendLocationActive } = useTransportPermits() const localState = reactive({ showErrorComponent: computed((): boolean => { return (props.setShowErrors && !localState.confirmCompletion) }), + isAmendTransportPermit: computed((): boolean => + isChangeLocationEnabled.value && isChangeLocationActive.value && isAmendLocationActive.value), isTransportPermit: computed((): boolean => isChangeLocationEnabled.value && isChangeLocationActive.value), confirmCompletion: false, diff --git a/ppr-ui/src/components/mhrTransportPermit/ConfirmCompletionContent/AmendTransportPermitConfirmCompletion.vue b/ppr-ui/src/components/mhrTransportPermit/ConfirmCompletionContent/AmendTransportPermitConfirmCompletion.vue new file mode 100644 index 000000000..01140a809 --- /dev/null +++ b/ppr-ui/src/components/mhrTransportPermit/ConfirmCompletionContent/AmendTransportPermitConfirmCompletion.vue @@ -0,0 +1,65 @@ + diff --git a/ppr-ui/src/components/mhrTransportPermit/ConfirmCompletionContent/index.ts b/ppr-ui/src/components/mhrTransportPermit/ConfirmCompletionContent/index.ts index 33d38ff47..5ff41264d 100644 --- a/ppr-ui/src/components/mhrTransportPermit/ConfirmCompletionContent/index.ts +++ b/ppr-ui/src/components/mhrTransportPermit/ConfirmCompletionContent/index.ts @@ -1,2 +1,3 @@ export { default as LocationChangeConfirmCompletion } from './LocationChangeConfirmCompletion.vue' export { default as TransportPermitConfirmCompletion } from './TransportPermitConfirmCompletion.vue' +export { default as AmendTransportPermitConfirmCompletion } from './AmendTransportPermitConfirmCompletion.vue' diff --git a/ppr-ui/src/views/mhrInformation/MhrInformation.vue b/ppr-ui/src/views/mhrInformation/MhrInformation.vue index b4f86dc63..81d470316 100644 --- a/ppr-ui/src/views/mhrInformation/MhrInformation.vue +++ b/ppr-ui/src/views/mhrInformation/MhrInformation.vue @@ -285,6 +285,7 @@ #contentSlot > + @@ -585,7 +586,8 @@ import MhrTransportPermit from '@/views/mhrInformation/MhrTransportPermit.vue' import { LocationChangeReview, LocationChangeConfirmCompletion, - TransportPermitConfirmCompletion + TransportPermitConfirmCompletion, + AmendTransportPermitConfirmCompletion } from '@/components/mhrTransportPermit' import { AccountInfoIF, @@ -635,7 +637,8 @@ export default defineComponent({ LienAlert, LocationChangeReview, LocationChangeConfirmCompletion, - TransportPermitConfirmCompletion + TransportPermitConfirmCompletion, + AmendTransportPermitConfirmCompletion }, props: { appReady: {