From 6874eff6d1c9fcf498fb30f81217ebf68e67b7bd Mon Sep 17 00:00:00 2001 From: Dima K Date: Wed, 15 Nov 2023 19:24:25 -0800 Subject: [PATCH 1/2] Add Lien Msg for Res Exemptions --- ppr-ui/src/assets/styles/theme.scss | 4 + ppr-ui/src/resources/index.ts | 1 + ppr-ui/src/resources/lienMessages.ts | 6 ++ ppr-ui/src/store/store.ts | 4 + .../views/mhrInformation/MhrInformation.vue | 99 ++++++++++++------- 5 files changed, 79 insertions(+), 35 deletions(-) create mode 100644 ppr-ui/src/resources/lienMessages.ts diff --git a/ppr-ui/src/assets/styles/theme.scss b/ppr-ui/src/assets/styles/theme.scss index d60bcb6e4..dc8092815 100644 --- a/ppr-ui/src/assets/styles/theme.scss +++ b/ppr-ui/src/assets/styles/theme.scss @@ -49,6 +49,10 @@ $BCgovAGold2: #fff8ef; $BCgovAGold3: #ffe0bc; $BCgovAGold4: #ffd4a2; +// Warning Colors +$warning: #FCBA19; +$backgroundWarning: #FFF7E3; + // Error Colors $BCgovInputError: #ff5252; $error: #D3272C; diff --git a/ppr-ui/src/resources/index.ts b/ppr-ui/src/resources/index.ts index 2afd590a8..2ff592161 100644 --- a/ppr-ui/src/resources/index.ts +++ b/ppr-ui/src/resources/index.ts @@ -22,3 +22,4 @@ export * from './contactInformationContent' export * from './userAccessOrgLookup' export * from './userAccessRequirements' export * from './exemptions' +export * from './lienMessages' diff --git a/ppr-ui/src/resources/lienMessages.ts b/ppr-ui/src/resources/lienMessages.ts new file mode 100644 index 000000000..5d904b906 --- /dev/null +++ b/ppr-ui/src/resources/lienMessages.ts @@ -0,0 +1,6 @@ +/* eslint-disable max-len */ +export const LienMessages = { + defaultWarning: 'There is a lien pertaining to this home. You can view liens against the manufactured home in the Personal Property Registry by conducting a combined Manufactured Home Registry and PPR search.', + QSError: 'There is at least one lien pertaining to this manufactured home that may be preventing some changes to this home. Any liens preventing changes must be either discharged or have prescribed conditions met before making changes. If prescribed conditions have been met, changes cannot be completed online and must be registered by BC Registries staff. You can view liens against the manufactured home in the PPR by conducting a combined Manufactured Home Registry and PPR search.', + exemptionsWarning: 'There is a PPSA (Personal Property Security Act) security interest pertaining to this manufactured home. You must have consent of each Secured Party in the agreement to continue. You can view liens against the manufactured home in the Personal Property Registry by conducting a combined Manufactured Home Registry and PPR search.' +} diff --git a/ppr-ui/src/store/store.ts b/ppr-ui/src/store/store.ts index a2cf6aa1e..aa284ed69 100644 --- a/ppr-ui/src/store/store.ts +++ b/ppr-ui/src/store/store.ts @@ -644,6 +644,9 @@ export const useStore = defineStore('assetsStore', () => { // Current state is to verify the property exists. Future state may be more granular dependent on type. return !!state.value.mhrInformation.lienRegistrationType }) + const getLienRegistrationType = computed(() => { + return state.value.mhrInformation.lienRegistrationType + }) const getMhrUnitNotes: ComputedRef> = computed>(() => { return state.value.mhrUnitNotes @@ -1365,6 +1368,7 @@ export const useStore = defineStore('assetsStore', () => { // Lien-related getter hasLien, + getLienRegistrationType, // Mhr Info Validation State getMhrInfoValidation, diff --git a/ppr-ui/src/views/mhrInformation/MhrInformation.vue b/ppr-ui/src/views/mhrInformation/MhrInformation.vue index 38e2b22f9..819b91499 100644 --- a/ppr-ui/src/views/mhrInformation/MhrInformation.vue +++ b/ppr-ui/src/views/mhrInformation/MhrInformation.vue @@ -38,6 +38,39 @@ }}