update to method to check for ADAS

This commit is contained in:
Kroell 2023-03-01 15:15:13 -05:00
parent 03ea2d4950
commit 44225e1921

View file

@ -183,16 +183,13 @@ export default {
// get array of parts for vehicle
let parts = useMainStore().order.lineItems.glassParts;
// loop through parts to check for ADAS
for (let part of parts) {
// if ADAS, display ADASNextSteps
if (part.requiresRecalibration) {
this.unverifiedADASNextSteps = true
}
// if non-ADAS, display NonADASNextSteps
else {
this.unverifiedNonADASNextSteps = true
}
// if ADAS, display ADASNextSteps
if (parts.filter(part => part.requiresRecalibration).length > 0) {
this.unverifiedADASNextSteps = true;
}
// if non-ADAS, display NonADASNextSteps
else {
this.unverifiedNonADASNextSteps = true;
}
},
stripOlTagFromCopy(copy) {