All non styling changes
This commit is contained in:
parent
9b772d33a5
commit
ed4c10af13
2 changed files with 10 additions and 25 deletions
|
|
@ -49,7 +49,7 @@ export default {
|
||||||
vehicles: Array,
|
vehicles: Array,
|
||||||
vehicleSelected: Object,
|
vehicleSelected: Object,
|
||||||
modelValue: String,
|
modelValue: String,
|
||||||
cmsWidgetName: String,
|
questionText: String,
|
||||||
validationRules: String,
|
validationRules: String,
|
||||||
isCarIdDifferent: Boolean,
|
isCarIdDifferent: Boolean,
|
||||||
displayMatchedDifferentVehicleAlert: Boolean,
|
displayMatchedDifferentVehicleAlert: Boolean,
|
||||||
|
|
@ -92,9 +92,6 @@ export default {
|
||||||
.replaceAll('{custom:vinYmmsFound}', vinYmmsFound)
|
.replaceAll('{custom:vinYmmsFound}', vinYmmsFound)
|
||||||
.replaceAll('{custom:vinYmmsExpected}', vinYmmsExpected);
|
.replaceAll('{custom:vinYmmsExpected}', vinYmmsExpected);
|
||||||
},
|
},
|
||||||
questionText() {
|
|
||||||
return this.getCmsContent('VehicleConfirmationQuestion', 'QuestionText');
|
|
||||||
},
|
|
||||||
selectedVehicleVin: {
|
selectedVehicleVin: {
|
||||||
get() {
|
get() {
|
||||||
return this.modelValue;
|
return this.modelValue;
|
||||||
|
|
@ -126,4 +123,8 @@ export default {
|
||||||
#address-vehicles-question-alert p {
|
#address-vehicles-question-alert p {
|
||||||
margin-bottom: 0 !important; // Overrides extra margin-bottom on alert body text
|
margin-bottom: 0 !important; // Overrides extra margin-bottom on alert body text
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep(div.list-button-content > span:first-child) {
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -13,15 +13,6 @@
|
||||||
<siteSubHeader
|
<siteSubHeader
|
||||||
cmsWidgetName="SiteSubHeaderWidget"
|
cmsWidgetName="SiteSubHeaderWidget"
|
||||||
class="mt-4" />
|
class="mt-4" />
|
||||||
<alert
|
|
||||||
id="multiple-vehicles-alert"
|
|
||||||
ref="alertFoundMultipleVehicles"
|
|
||||||
cmsWidgetName="FoundMultipleVehicles"
|
|
||||||
class="my-5"
|
|
||||||
alertClass="alert-warning"
|
|
||||||
:manualHeadline="AlertFoundMultipleVehiclesHeader"
|
|
||||||
manualCopy=""
|
|
||||||
:isDismissible="false" />
|
|
||||||
<alert
|
<alert
|
||||||
v-if="displayNoServiceAlert"
|
v-if="displayNoServiceAlert"
|
||||||
ref="AlertNoService"
|
ref="AlertNoService"
|
||||||
|
|
@ -32,7 +23,7 @@
|
||||||
<addressVehiclesQuestion
|
<addressVehiclesQuestion
|
||||||
ref="addressVehiclesQuestion"
|
ref="addressVehiclesQuestion"
|
||||||
v-model="selectedVehicleVin"
|
v-model="selectedVehicleVin"
|
||||||
cmsWidgetName="VehicleConfirmationQuestion"
|
:questionText="questionText"
|
||||||
:vehicles="VehiclesForQuestions"
|
:vehicles="VehiclesForQuestions"
|
||||||
:vehicleSelected="VehicleSelected"
|
:vehicleSelected="VehicleSelected"
|
||||||
validationRules="vehicle-required"
|
validationRules="vehicle-required"
|
||||||
|
|
@ -165,10 +156,10 @@ export default {
|
||||||
vehicleCount() {
|
vehicleCount() {
|
||||||
return this.VehiclesForQuestions.length;
|
return this.VehiclesForQuestions.length;
|
||||||
},
|
},
|
||||||
AlertFoundMultipleVehiclesHeader() {
|
questionText() {
|
||||||
return this.getCmsContent(
|
return this.getCmsContent(
|
||||||
'FoundMultipleVehicles',
|
'VehicleConfirmationQuestion',
|
||||||
'HeadlineText'
|
'QuestionText'
|
||||||
).replaceAll('{custom:vehicleCount}', this.vehicleCount);
|
).replaceAll('{custom:vehicleCount}', this.vehicleCount);
|
||||||
},
|
},
|
||||||
isTwoIdenticalYMMVehicleFound() {
|
isTwoIdenticalYMMVehicleFound() {
|
||||||
|
|
@ -187,7 +178,7 @@ export default {
|
||||||
// Map API result data, to address-vehicles data structure
|
// Map API result data, to address-vehicles data structure
|
||||||
const mappedData = this.VehiclesFromApi.map((v) => {
|
const mappedData = this.VehiclesFromApi.map((v) => {
|
||||||
const maskSymbol = '*';
|
const maskSymbol = '*';
|
||||||
const vinStart = maskSymbol.repeat(v.vin.length - 6);
|
const vinStart = maskSymbol.repeat(6);
|
||||||
const vinEnd = v.vin.substring(v.vin.length - 6);
|
const vinEnd = v.vin.substring(v.vin.length - 6);
|
||||||
return {
|
return {
|
||||||
vin: v.vin,
|
vin: v.vin,
|
||||||
|
|
@ -235,13 +226,6 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.displayMatchedDifferentVehicleAlert = true;
|
this.displayMatchedDifferentVehicleAlert = true;
|
||||||
}
|
}
|
||||||
this.$refs.siteFooter.updateButtonText(`Continue with ${this.selectedVehicle.vehicle.year} `
|
|
||||||
+ `${this.selectedVehicle.vehicle.make} ${this.selectedVehicle.vehicle.model} ${this.forwardButtonCarStyle}`);
|
|
||||||
} else {
|
|
||||||
this.$refs.siteFooter.updateButtonText(this.getCmsContent(
|
|
||||||
'SiteFooterWidget',
|
|
||||||
'ForwardButtonText'
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue