@@ -56,7 +59,7 @@ export default {
setup(props) {
const fieldOptions = {
type: "text",
- value: props.modelValue,
+ value: props.modelValue,
};
const {
@@ -64,15 +67,17 @@ export default {
handleBlur,
handleChange,
meta,
- validate
+ validate,
+ errors,
} = useField(props.inputId, props.validationRules, fieldOptions);
- return {
+ return {
errorMessage,
handleBlur,
handleChange,
validate,
- meta,
+ meta,
+ errors,
};
},
computed: {
@@ -86,7 +91,7 @@ export default {
set: function(newValue) {
this.$emit("update:modelValue", newValue);
}
- },
+ },
labelText: {
get: function () {
let labelText = this.questionText;
@@ -98,7 +103,7 @@ export default {
return labelText;
}
- }
+ }
},
watch: {
value(newValue) {
diff --git a/src/constants/error-messages.js b/src/constants/error-messages.js
index 311e747b0..c3976d0f9 100644
--- a/src/constants/error-messages.js
+++ b/src/constants/error-messages.js
@@ -16,6 +16,8 @@ const errorMessages = {
LAST_NAME_REQUIRED: "Please enter your last name",
EMAIL_ADDRESS_REQUIRED: "Please enter your email address",
EMAIL_ADDRESS_FORMAT: "Please enter a valid email address",
+ VIN_REQUIRED: "Please enter your VIN",
+ VIN_FORMAT: "Please enter a valid VIN",
};
-
-export { errorMessages };
\ No newline at end of file
+
+export { errorMessages };
diff --git a/src/helpers/heritage-integration/navigation-helper.js b/src/helpers/heritage-integration/navigation-helper.js
index 3e9f14d32..7987f4cb6 100644
--- a/src/helpers/heritage-integration/navigation-helper.js
+++ b/src/helpers/heritage-integration/navigation-helper.js
@@ -9,7 +9,7 @@ import router from "@/router";
/*
If the user has visited the funnel before this method will determine the bets place to
drop them so they don't start at the beginning again. This method will return 'heritage' if
- the user has an existing order and they come back in from the Safelite.com CTA.
+ the user has an existing order and they come back in from the Safelite.com CTA.
*/
export async function getPageToRouteExistingOrderTo(toRoute = {}, existingHeritageOrder = false) {
diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue
index 366a499af..b50b180c0 100644
--- a/src/layouts/vin-lookup/vin-lookup.vue
+++ b/src/layouts/vin-lookup/vin-lookup.vue
@@ -1,44 +1,267 @@
-