Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update colour for Lien Alert msg #1632

Merged
merged 4 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ppr-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ppr-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ppr-ui",
"version": "2.1.25",
"version": "2.1.26",
"private": true,
"appName": "Assets UI",
"sbcName": "SBC Common Components",
Expand Down
8 changes: 4 additions & 4 deletions ppr-ui/src/components/common/LienAlert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
:class="lienInfo.class"
outlined
>
<v-icon v-if="lienInfo.class === 'error'" color="error" class="float-left mr-2 mt-n1">
<v-icon v-if="lienInfo.class === 'error-msg'" color="error" class="float-left mr-2 mt-n1">
mdi-alert
</v-icon>
<p :class="lienInfo.class === 'warning' ? 'mb-0' : 'mb-0 pl-8'">
<p :class="lienInfo.class === 'warning-msg' ? 'mb-0' : 'mb-0 pl-8'">
<strong>Important:</strong> {{ lienInfo.msg }}
</p>
</v-card>
Expand Down Expand Up @@ -119,12 +119,12 @@ export default defineComponent({

#important-message {

&.warning {
&.warning-msg {
background-color: $backgroundWarning !important;
border-color: $warning;
}

&.error {
&.error-msg {
background-color: $backgroundError !important;
border-color: $error;
}
Expand Down
6 changes: 3 additions & 3 deletions ppr-ui/src/composables/mhrInformation/useMhrInformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,21 +201,21 @@ export const useMhrInformation = () => {

if (isRoleStaffReg.value || (isRoleQualifiedSupplier.value && isLienRegistrationTypeSA)) {
return {
class: 'warning',
class: 'warning-msg',
msg: LienMessages.defaultWarning,
isSubmissionAllowed: true
}
} else if (isRoleQualifiedSupplier.value) {
return {
class: 'error',
class: 'error-msg',
msg: LienMessages.QSError,
isSubmissionAllowed: false
}
} else if (isRoleQualifiedSupplier.value &&
hasActiveExemption &&
isLienRegistrationTypeSA) {
return {
class: 'warning',
class: 'warning-msg',
msg: LienMessages.exemptionsWarning,
isSubmissionAllowed: true
}
Expand Down
2 changes: 1 addition & 1 deletion ppr-ui/src/views/mhrInformation/MhrInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ export default defineComponent({
: `A ${unitNoteType} has been filed against this home and you will be unable to make any changes. If you require further information please contact BC Registries staff.` // eslint-disable-line max-len
}),
cautionMsg: computed((): string => {
let baseMsg = 'A Caution has been filed against this home.'
const baseMsg = 'A Caution has been filed against this home.'

return isRoleStaffReg.value
? `${baseMsg} See Unit Notes for further details.`
Expand Down
Loading