CSR-458 bug fix updates.
Fix font size, remove duplicate alert, fix alert color, fix service zip required error message, update vin format message.
This commit is contained in:
parent
adbf9d2873
commit
997b88f926
3 changed files with 9 additions and 16 deletions
|
|
@ -21,7 +21,7 @@ const errorMessages = {
|
||||||
SERVICE_ZIP_REQUIRED: "Please enter your Service ZIP",
|
SERVICE_ZIP_REQUIRED: "Please enter your Service ZIP",
|
||||||
SERVICE_ZIP_FORMAT: "Please enter a valid Service ZIP",
|
SERVICE_ZIP_FORMAT: "Please enter a valid Service ZIP",
|
||||||
VIN_REQUIRED: "Please enter your VIN",
|
VIN_REQUIRED: "Please enter your VIN",
|
||||||
VIN_FORMAT: "Please enter a valid VIN",
|
VIN_FORMAT: "Invalid VIN. Please make sure that you entered the correct 17-digit, alpha-numeric number. VINs do not contain the letters I, O, or Q",
|
||||||
OPTION_REQUIRED: "Please select an option",
|
OPTION_REQUIRED: "Please select an option",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,14 +64,6 @@
|
||||||
alertClass="alert-warning"
|
alertClass="alert-warning"
|
||||||
cmsWidgetName="NoMatchAlertWidget"
|
cmsWidgetName="NoMatchAlertWidget"
|
||||||
/>
|
/>
|
||||||
<alert
|
|
||||||
class="my-3"
|
|
||||||
:manualHeadline="NoServiceZipHeader"
|
|
||||||
:manualCopy="NoServiceZipBody"
|
|
||||||
v-model="customAlertData"
|
|
||||||
v-if="noServiceZip"
|
|
||||||
alertClass="alert-warning"
|
|
||||||
/>
|
|
||||||
<alert
|
<alert
|
||||||
class="my-3"
|
class="my-3"
|
||||||
v-model="customAlertData"
|
v-model="customAlertData"
|
||||||
|
|
@ -93,7 +85,7 @@
|
||||||
:manualCopy="MatchedDifferentVehicleAlertBody"
|
:manualCopy="MatchedDifferentVehicleAlertBody"
|
||||||
v-model="customAlertData"
|
v-model="customAlertData"
|
||||||
v-if="isCarIdDifferent"
|
v-if="isCarIdDifferent"
|
||||||
alertClass="alert-danger"
|
alertClass="alert-warning"
|
||||||
/>
|
/>
|
||||||
<alert
|
<alert
|
||||||
class="my-3"
|
class="my-3"
|
||||||
|
|
@ -101,7 +93,7 @@
|
||||||
:manualCopy="NoServiceZipBody"
|
:manualCopy="NoServiceZipBody"
|
||||||
v-model="customAlertData"
|
v-model="customAlertData"
|
||||||
v-if="noServiceZip"
|
v-if="noServiceZip"
|
||||||
alertClass="alert-warning"
|
alertClass="alert-danger"
|
||||||
/>
|
/>
|
||||||
<alert
|
<alert
|
||||||
class="my-3"
|
class="my-3"
|
||||||
|
|
@ -154,7 +146,7 @@ import { Form, defineRule } from "vee-validate";
|
||||||
import { navigateAfterSaveToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
|
import { navigateAfterSaveToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
|
||||||
|
|
||||||
// DEFINE VALIDATION RULES
|
// DEFINE VALIDATION RULES
|
||||||
defineRule("zip-required", required(errorMessages.ZIP_REQUIRED));
|
defineRule("zip-required", required(errorMessages.SERVICE_ZIP_REQUIRED));
|
||||||
defineRule(
|
defineRule(
|
||||||
"email-address-required",
|
"email-address-required",
|
||||||
required(errorMessages.EMAIL_ADDRESS_REQUIRED)
|
required(errorMessages.EMAIL_ADDRESS_REQUIRED)
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,16 @@
|
||||||
role="alert"
|
role="alert"
|
||||||
:class="[isDismissible ? 'alert-dismissible' : '', this.alertClass]"
|
:class="[isDismissible ? 'alert-dismissible' : '', this.alertClass]"
|
||||||
>
|
>
|
||||||
<p class="m-0 fw-bold small alert-heading">{{ alertHeadline }}</p>
|
<p class="m-0 fw-bold alert-heading">{{ alertHeadline }}</p>
|
||||||
<p v-if="splitAlertCopyForLink.length">
|
<p v-if="splitAlertCopyForLink.length">
|
||||||
<template v-for="copy in splitAlertCopyForLink" :key="copy">
|
<template v-for="copy in splitAlertCopyForLink" :key="copy">
|
||||||
<span v-if="copy.includes('routerLink:')" class="m-0 text-body small">
|
<span v-if="copy.includes('routerLink:')" class="m-0 text-body">
|
||||||
<router-link :to="{query: {fmgPage: `${copy.split(':')[1].split(',')[0]}`}, name: 'root'}">{{ copy.split(':')[1].split(',')[1] }}</router-link>
|
<router-link :to="{query: {fmgPage: `${copy.split(':')[1].split(',')[0]}`}, name: 'root'}">{{ copy.split(':')[1].split(',')[1] }}</router-link>
|
||||||
</span>
|
</span>
|
||||||
<span v-else class="m-0 text-body small" v-html="copy"></span>
|
<span v-else class="m-0 text-body" v-html="copy"></span>
|
||||||
</template>
|
</template>
|
||||||
</p>
|
</p>
|
||||||
<p v-else class="m-0 text-body small" v-html="alertCopy"></p>
|
<p v-else class="m-0 text-body" v-html="alertCopy"></p>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="btn-close p-2"
|
class="btn-close p-2"
|
||||||
|
|
@ -129,6 +129,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
& p {
|
& p {
|
||||||
|
font-size: .875rem;
|
||||||
margin-bottom: 0.25rem !important;
|
margin-bottom: 0.25rem !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue