remove isBigTruck check, block all non-serviceable vehicles

This commit is contained in:
Katie Kroell 2025-09-11 11:31:55 -04:00
parent faa04c6fbf
commit 52688f7baa
6 changed files with 7 additions and 8 deletions

View file

@ -270,7 +270,7 @@ export default {
// Single VIN found // Single VIN found
const carFound = carsFound[0].vehicle; const carFound = carsFound[0].vehicle;
if (carFound.isBigTruck && !carFound.canSafeliteService) { if (!carFound.canSafeliteService) {
this.displayNoServiceAlert = true; this.displayNoServiceAlert = true;
this.$refs.siteFooter.disableForwardButton(); this.$refs.siteFooter.disableForwardButton();
return this.$refs.siteFooter.removeLoader(); return this.$refs.siteFooter.removeLoader();

View file

@ -219,8 +219,7 @@ export default {
selectedVehicleVin: { selectedVehicleVin: {
handler() { handler() {
this.resetWarningsAndErrors(); this.resetWarningsAndErrors();
if (this.selectedVehicle?.vehicle.isBigTruck if (!this.selectedVehicle?.vehicle.canSafeliteService) {
&& !this.selectedVehicle?.vehicle.canSafeliteService) {
this.displayNoServiceAlert = true; this.displayNoServiceAlert = true;
return this.$refs.siteFooter.disableForwardButton(); return this.$refs.siteFooter.disableForwardButton();
} }

View file

@ -281,7 +281,7 @@ export default {
// Vehicle found from VIN lookup // Vehicle found from VIN lookup
const vehicleFromLookup = vinLookupResponse.data.vehicle; const vehicleFromLookup = vinLookupResponse.data.vehicle;
if (vehicleFromLookup.isBigTruck && !vehicleFromLookup.canSafeliteService) { if (!vehicleFromLookup.canSafeliteService) {
this.displayNoServiceAlert = true; this.displayNoServiceAlert = true;
this.$refs.siteFooter.disableForwardButton(); this.$refs.siteFooter.disableForwardButton();
return this.$refs.siteFooter.removeLoader(); return this.$refs.siteFooter.removeLoader();

View file

@ -161,7 +161,7 @@ export default {
this.displayGeneric = true; this.displayGeneric = true;
return; return;
} }
if (vehicle?.data.isBigTruck && !vehicle?.data.canSafeliteService) { if (!vehicle?.data.canSafeliteService) {
this.displayNoServiceAlert = true; this.displayNoServiceAlert = true;
this.$refs.siteFooter.disableForwardButton(); this.$refs.siteFooter.disableForwardButton();
} }

View file

@ -188,7 +188,7 @@ export default {
this.selectedModel, this.selectedModel,
this.selectedStyle this.selectedStyle
).then((result) => { ).then((result) => {
this.displayNoServiceAlert = result.data.isBigTruck && !result.data.canSafeliteService; this.displayNoServiceAlert = !result.data.canSafeliteService;
}); });
} }
}, },
@ -210,7 +210,7 @@ export default {
this.selectedModel, this.selectedModel,
this.selectedStyle this.selectedStyle
).then((result) => { ).then((result) => {
this.displayNoServiceAlert = result.data.isBigTruck && !result.data.canSafeliteService; this.displayNoServiceAlert = !result.data.canSafeliteService;
}); });
} }
}, },

View file

@ -196,7 +196,7 @@ export default {
return; return;
} }
if (vehicleLookupResponse.data.isBigTruck && !vehicleLookupResponse.data.canSafeliteService) { if (!vehicleLookupResponse.data.canSafeliteService) {
this.activeVehicleLookupAlertType = vehicleLookupAlertTypes.NO_SERVICE; this.activeVehicleLookupAlertType = vehicleLookupAlertTypes.NO_SERVICE;
this.resetVehicleFromLookup(); this.resetVehicleFromLookup();
this.$refs.siteFooter.disableForwardButton(); this.$refs.siteFooter.disableForwardButton();