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');
|
return this.getCmsContent('continueWithSchedulingCopy', 'BodyText');
|
||||||
},
|
},
|
||||||
unverifiedADASNextStepsBodyText() {
|
unverifiedADASNextStepsBodyText() {
|
||||||
return this.getCmsContent('UnverifiedADASNextStepsWidget', 'BodyText').replaceAll("{custom:damage}", getDamageString());
|
return this.getCmsContent('UnverifiedADASNextStepsWidget', 'BodyText').replaceAll("{custom:damage}", this.damageText);
|
||||||
},
|
},
|
||||||
unverifiedNonADASNextStepsBodyText() {
|
unverifiedNonADASNextStepsBodyText() {
|
||||||
return this.getCmsContent('UnverifiedNonADASNextStepsWidget', 'BodyText').replaceAll("{custom:damage}", getDamageString());
|
return this.getCmsContent('UnverifiedNonADASNextStepsWidget', 'BodyText').replaceAll("{custom:damage}", this.damageText);
|
||||||
},
|
},
|
||||||
unverifiedNonADASRepairBodyText() {
|
unverifiedNonADASRepairBodyText() {
|
||||||
return this.getCmsContent('UnverifiedNonADASRepairWidget', 'BodyText');
|
return this.getCmsContent('UnverifiedNonADASRepairWidget', 'BodyText');
|
||||||
|
|
@ -145,7 +145,11 @@ export default {
|
||||||
},
|
},
|
||||||
arrayOfListItemsFromBodyText() {
|
arrayOfListItemsFromBodyText() {
|
||||||
return this.getArrayOfListItemsFromRawCmsCopy(this.unverifiedADASNextStepsBodyText);
|
return this.getArrayOfListItemsFromRawCmsCopy(this.unverifiedADASNextStepsBodyText);
|
||||||
}
|
},
|
||||||
|
damageText() {
|
||||||
|
var damageString = getDamageString();
|
||||||
|
return damageString == "match" ? "" : damageString;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
// Call APIs
|
// Call APIs
|
||||||
|
|
@ -183,16 +187,13 @@ export default {
|
||||||
// get array of parts for vehicle
|
// get array of parts for vehicle
|
||||||
let parts = useMainStore().order.lineItems.glassParts;
|
let parts = useMainStore().order.lineItems.glassParts;
|
||||||
|
|
||||||
// loop through parts to check for ADAS
|
// if ADAS, display ADASNextSteps
|
||||||
for (let part of parts) {
|
if (parts.filter(part => part.requiresRecalibration).length > 0) {
|
||||||
// if ADAS, display ADASNextSteps
|
this.unverifiedADASNextSteps = true;
|
||||||
if (part.requiresRecalibration) {
|
}
|
||||||
this.unverifiedADASNextSteps = true
|
// if non-ADAS, display NonADASNextSteps
|
||||||
}
|
else {
|
||||||
// if non-ADAS, display NonADASNextSteps
|
this.unverifiedNonADASNextSteps = true;
|
||||||
else {
|
|
||||||
this.unverifiedNonADASNextSteps = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
stripOlTagFromCopy(copy) {
|
stripOlTagFromCopy(copy) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue