updates to vin masking and success alert

This commit is contained in:
Kroell 2023-03-09 13:47:47 -05:00
parent e8e419de83
commit fe7e8227e7

View file

@ -87,8 +87,8 @@ export default {
activeVehicleLookupAlertType: null,
needToLookupVehicle: true,
vehicleFromLookup: null,
vin: null,
vinPopulatedOnPageLoad: this.mainStore.vehicle.vin?.length > 0,
vin: this.getVinFromStore(),
vinPopulatedOnPageLoad: this.getVinFromStore()?.length > 0,
};
},
provide() {
@ -122,6 +122,7 @@ export default {
},
vinMask() {
if (this.vinPopulatedOnPageLoad) {
this.activeVehicleLookupAlertType = vehicleLookupAlertTypes.PERFECT_MATCH;
const lastSixChars = this.vin.substring(11, this.vin.length);
return `!X!X!X!X!X!X!X!X!X!X!X${lastSixChars}`;
} else {
@ -133,9 +134,9 @@ export default {
arePagePrerequisiteValid() {
return true;
},
// getVinFromStore() {
// return this.mainStore.vehicle.vin;
// },
getVinFromStore() {
return this.mainStore.vehicle.vin;
},
backButtonAction() {
/**
* this.navigationScenarios comes from base-mixin