update to method to check for ADAS
This commit is contained in:
parent
03ea2d4950
commit
44225e1921
1 changed files with 7 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue