edits to casing (changed to camelCase)
This commit is contained in:
parent
bbf8fc0440
commit
813eddf124
6 changed files with 34 additions and 28 deletions
|
|
@ -3,24 +3,24 @@
|
||||||
id="vin-lookup-alerts-wrapper"
|
id="vin-lookup-alerts-wrapper"
|
||||||
:class="wrapperCssClass"
|
:class="wrapperCssClass"
|
||||||
>
|
>
|
||||||
<VehicleNotFoundAlert
|
<vehicleNotFoundAlert
|
||||||
v-if="isVehicleNotFoundVisible"
|
v-if="isVehicleNotFoundVisible"
|
||||||
/>
|
/>
|
||||||
<VehicleNotMatchedAlert
|
<vehicleNotMatchedAlert
|
||||||
v-else-if="isVehicleNotMatchedVisible"
|
v-else-if="isVehicleNotMatchedVisible"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import vehicleLookupAlertTypes from '@/constants/vehicle-lookup-alert-types';
|
import vehicleLookupAlertTypes from '@/constants/vehicle-lookup-alert-types';
|
||||||
import VehicleNotFoundAlert from './vehicle-not-found-alert/vehicle-not-found-alert.vue';
|
import vehicleNotFoundAlert from './vehicle-not-found-alert/vehicle-not-found-alert.vue';
|
||||||
import VehicleNotMatchedAlert from './vehicle-not-matched-alert/vehicle-not-matched-alert.vue';
|
import vehicleNotMatchedAlert from './vehicle-not-matched-alert/vehicle-not-matched-alert.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'license-plate-lookup-alerts',
|
name: 'license-plate-lookup-alerts',
|
||||||
components: {
|
components: {
|
||||||
VehicleNotFoundAlert,
|
vehicleNotFoundAlert,
|
||||||
VehicleNotMatchedAlert,
|
vehicleNotMatchedAlert,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
activeAlertType: {
|
activeAlertType: {
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<Alert
|
<alert
|
||||||
alert-class="alert-danger"
|
alert-class="alert-danger"
|
||||||
cms-widget-name="AlertVinNotFoundWidget"
|
cms-widget-name="AlertVinNotFoundWidget"
|
||||||
id="vehicle-not-found-alert"
|
id="vehicle-not-found-alert"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Alert from '@/ux-components/alert/alert.vue';
|
import alert from '@/ux-components/alert/alert.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'vehicle-not-found-alert',
|
name: 'vehicle-not-found-alert',
|
||||||
components: {
|
components: {
|
||||||
Alert,
|
alert,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<Alert
|
<alert
|
||||||
alert-class="alert-warning"
|
alert-class="alert-warning"
|
||||||
cms-widget-name="AlertMatchedDifferentVehicleWidget"
|
cms-widget-name="AlertMatchedDifferentVehicleWidget"
|
||||||
:manual-copy="body"
|
:manual-copy="body"
|
||||||
|
|
@ -9,12 +9,12 @@
|
||||||
<script>
|
<script>
|
||||||
import { getDamageString } from '@/helpers/damage-helper';
|
import { getDamageString } from '@/helpers/damage-helper';
|
||||||
|
|
||||||
import Alert from '@/ux-components/alert/alert.vue';
|
import alert from '@/ux-components/alert/alert.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'vehicle-not-matched-alert',
|
name: 'vehicle-not-matched-alert',
|
||||||
components: {
|
components: {
|
||||||
Alert,
|
alert,
|
||||||
},
|
},
|
||||||
inject: ['vehicleFromLookup'],
|
inject: ['vehicleFromLookup'],
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,12 @@
|
||||||
:display-generic-vehicle-image="false" />
|
:display-generic-vehicle-image="false" />
|
||||||
<siteSubHeader cms-widget-name="SiteSubHeaderWidget" />
|
<siteSubHeader cms-widget-name="SiteSubHeaderWidget" />
|
||||||
<div class="fade-on-route-transition sub-container make-tall mt-5">
|
<div class="fade-on-route-transition sub-container make-tall mt-5">
|
||||||
<license-plate-lookup-alerts
|
<licensePlateLookupAlerts
|
||||||
:activeAlertType="activeVehicleLookupAlertType"
|
:activeAlertType="activeVehicleLookupAlertType"
|
||||||
/>
|
/>
|
||||||
<license-plate-question
|
<licensePlateQuestion
|
||||||
v-model="licensePlate"/>
|
v-model="licensePlate"/>
|
||||||
<zip-question
|
<zipQuestion
|
||||||
v-model="registrationZipCode"
|
v-model="registrationZipCode"
|
||||||
class="mt-4" />
|
class="mt-4" />
|
||||||
<siteFooter
|
<siteFooter
|
||||||
|
|
@ -39,20 +39,20 @@ import { settleAllPromises } from '@/helpers/layout-helper';
|
||||||
import { useMainStore } from '@/store';
|
import { useMainStore } from '@/store';
|
||||||
|
|
||||||
// Import Component
|
// Import Component
|
||||||
import BaseFormMixin from '@/mixins/base-form-mixin';
|
import baseFormMixin from '@/mixins/base-form-mixin';
|
||||||
import { Form } from 'vee-validate';
|
import { Form } from 'vee-validate';
|
||||||
import siteFooter from '@/common-components/site-footer/site-footer.vue';
|
import siteFooter from '@/common-components/site-footer/site-footer.vue';
|
||||||
import siteHeader from '@/common-components/site-header/site-header.vue';
|
import siteHeader from '@/common-components/site-header/site-header.vue';
|
||||||
import siteSubHeader from '@/common-components/site-sub-header/site-sub-header.vue';
|
import siteSubHeader from '@/common-components/site-sub-header/site-sub-header.vue';
|
||||||
import vehicleBanner from '@/common-components/vehicle-banner/vehicle-banner.vue';
|
import vehicleBanner from '@/common-components/vehicle-banner/vehicle-banner.vue';
|
||||||
import textboxQuestion from '../../common-components/textbox-question/textbox-question.vue';
|
import textboxQuestion from '../../common-components/textbox-question/textbox-question.vue';
|
||||||
import LicensePlateQuestion from './license-plate-question/license-plate-question.vue';
|
import licensePlateQuestion from './license-plate-question/license-plate-question.vue';
|
||||||
import ZipQuestion from './zip-question/zip-question.vue';
|
import zipQuestion from './zip-question/zip-question.vue';
|
||||||
import LicensePlateLookupAlerts from './license-plate-lookup-alerts/license-plate-lookup-alerts.vue';
|
import licensePlateLookupAlerts from './license-plate-lookup-alerts/license-plate-lookup-alerts.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'license-plate-lookup',
|
name: 'license-plate-lookup',
|
||||||
mixins: [BaseFormMixin],
|
mixins: [baseFormMixin],
|
||||||
components: {
|
components: {
|
||||||
Form,
|
Form,
|
||||||
siteFooter,
|
siteFooter,
|
||||||
|
|
@ -60,8 +60,14 @@ export default {
|
||||||
siteSubHeader,
|
siteSubHeader,
|
||||||
vehicleBanner,
|
vehicleBanner,
|
||||||
textboxQuestion,
|
textboxQuestion,
|
||||||
LicensePlateQuestion,
|
licensePlateQuestion,
|
||||||
ZipQuestion,
|
zipQuestion,
|
||||||
|
licensePlateLookupAlerts
|
||||||
|
},
|
||||||
|
setup() {
|
||||||
|
const mainStore = useMainStore();
|
||||||
|
|
||||||
|
return { mainStore };
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<TextboxQuestion
|
<textboxQuestion
|
||||||
inputId="license-plate-question"
|
inputId="license-plate-question"
|
||||||
cmsWidgetName="LicensePlateNumberQuestionWidget"
|
cmsWidgetName="LicensePlateNumberQuestionWidget"
|
||||||
v-model="licensePlate"
|
v-model="licensePlate"
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
import { errorMessages } from '@/constants/error-messages';
|
import { errorMessages } from '@/constants/error-messages';
|
||||||
|
|
||||||
// Import Component(s)
|
// Import Component(s)
|
||||||
import TextboxQuestion from '@/common-components/textbox-question/textbox-question.vue';
|
import textboxQuestion from '@/common-components/textbox-question/textbox-question.vue';
|
||||||
|
|
||||||
defineRule("license-plate-required", required(errorMessages.LICENSE_PLATE_REQUIRED));
|
defineRule("license-plate-required", required(errorMessages.LICENSE_PLATE_REQUIRED));
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ export default {
|
||||||
},
|
},
|
||||||
emits: ['update:modelValue'],
|
emits: ['update:modelValue'],
|
||||||
components: {
|
components: {
|
||||||
TextboxQuestion,
|
textboxQuestion,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
licensePlate: {
|
licensePlate: {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<TextboxQuestion
|
<textboxQuestion
|
||||||
inputId="zip"
|
inputId="zip"
|
||||||
cmsWidgetName="RegistrationZipQuestionWidget"
|
cmsWidgetName="RegistrationZipQuestionWidget"
|
||||||
v-model="registrationZipCode"
|
v-model="registrationZipCode"
|
||||||
|
|
@ -15,7 +15,7 @@ import { regex, required } from '@/helpers/validation-rules';
|
||||||
import { errorMessages } from '@/constants/error-messages';
|
import { errorMessages } from '@/constants/error-messages';
|
||||||
|
|
||||||
// Import Component(s)
|
// Import Component(s)
|
||||||
import TextboxQuestion from '@/common-components/textbox-question/textbox-question.vue';
|
import textboxQuestion from '@/common-components/textbox-question/textbox-question.vue';
|
||||||
|
|
||||||
defineRule("zip-required", required(errorMessages.REGISTRATION_ZIP_REQUIRED));
|
defineRule("zip-required", required(errorMessages.REGISTRATION_ZIP_REQUIRED));
|
||||||
defineRule("zip-format", regex(/(^\d{5}$)|(^\d{5}-\d{4}$)/, errorMessages.ZIP_FORMAT));
|
defineRule("zip-format", regex(/(^\d{5}$)|(^\d{5}-\d{4}$)/, errorMessages.ZIP_FORMAT));
|
||||||
|
|
@ -27,7 +27,7 @@ export default {
|
||||||
},
|
},
|
||||||
emits: ['update:modelValue'],
|
emits: ['update:modelValue'],
|
||||||
components: {
|
components: {
|
||||||
TextboxQuestion,
|
textboxQuestion,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
registrationZipCode: {
|
registrationZipCode: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue