change to damageString if >1 damage location
This commit is contained in:
parent
2e9146aad1
commit
33235224be
1 changed files with 7 additions and 3 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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue