change to damageString if >1 damage location

This commit is contained in:
Kroell 2023-03-01 15:46:16 -05:00
parent 2e9146aad1
commit 33235224be

View file

@ -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