Merge pull request #179 from Safelite/feature/digital/SSR-219
Feature/digital/ssr 219
This commit is contained in:
commit
3f8efc5cd8
1 changed files with 14 additions and 13 deletions
|
|
@ -131,10 +131,10 @@ export default {
|
|||
return this.getCmsContent('continueWithSchedulingCopy', 'BodyText');
|
||||
},
|
||||
unverifiedADASNextStepsBodyText() {
|
||||
return this.getCmsContent('UnverifiedADASNextStepsWidget', 'BodyText').replaceAll("{custom:damage}", getDamageString());
|
||||
return this.getCmsContent('UnverifiedADASNextStepsWidget', 'BodyText').replaceAll("{custom:damage}", this.damageText);
|
||||
},
|
||||
unverifiedNonADASNextStepsBodyText() {
|
||||
return this.getCmsContent('UnverifiedNonADASNextStepsWidget', 'BodyText').replaceAll("{custom:damage}", getDamageString());
|
||||
return this.getCmsContent('UnverifiedNonADASNextStepsWidget', 'BodyText').replaceAll("{custom:damage}", this.damageText);
|
||||
},
|
||||
unverifiedNonADASRepairBodyText() {
|
||||
return this.getCmsContent('UnverifiedNonADASRepairWidget', 'BodyText');
|
||||
|
|
@ -145,7 +145,11 @@ export default {
|
|||
},
|
||||
arrayOfListItemsFromBodyText() {
|
||||
return this.getArrayOfListItemsFromRawCmsCopy(this.unverifiedADASNextStepsBodyText);
|
||||
}
|
||||
},
|
||||
damageText() {
|
||||
var damageString = getDamageString();
|
||||
return damageString == "match" ? "" : damageString;
|
||||
},
|
||||
},
|
||||
async beforeRouteEnter(to, from, next) {
|
||||
// Call APIs
|
||||
|
|
@ -183,16 +187,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