Some additional small changes requested by Frank

This commit is contained in:
Leah Schumann 2022-07-13 11:00:11 -04:00
parent 2d01a189e8
commit 8c2232e911
2 changed files with 5 additions and 13 deletions

View file

@ -318,8 +318,7 @@ export default {
computed: { computed: {
AlertNonServiceableZipHeader() { AlertNonServiceableZipHeader() {
const zipCode = this.serviceZipCode ? this.serviceZipCode : this.registrationZipCode; const zipCode = this.serviceZipCode ? this.serviceZipCode : this.registrationZipCode;
const text = this.getCmsContent("AlertNonServiceableZipWidget", "HeadlineText").replaceAll("{custom:serviceZip}", zipCode); return this.getCmsContent("AlertNonServiceableZipWidget", "HeadlineText").replaceAll("{custom:serviceZip}", zipCode);
return text;
}, },
AlertNonServiceableZipBody() { AlertNonServiceableZipBody() {
return this.getCmsContent("AlertNonServiceableZipWidget", "BodyText"); return this.getCmsContent("AlertNonServiceableZipWidget", "BodyText");

View file

@ -334,21 +334,15 @@ export default {
}, },
computed: { computed: {
AlertMatchedDifferentVehicleHeader(){ AlertMatchedDifferentVehicleHeader(){
const text = this.getCmsContent("AlertMatchedDifferentVehicleWidget", return this.getCmsContent("AlertMatchedDifferentVehicleWidget", "HeadlineText").replaceAll("{custom:damage}", getDamageString());
"HeadlineText").replaceAll("{custom:damage}", getDamageString());
return text;
}, },
AlertMatchedDifferentVehicleBody(){ AlertMatchedDifferentVehicleBody(){
const text = this.getCmsContent("AlertMatchedDifferentVehicleWidget", return this.getCmsContent("AlertMatchedDifferentVehicleWidget",
"BodyText").replaceAll("{custom:damage}", getDamageString()).replaceAll("{custom:vinlookupYear}", this.customAlertData?.vehicleInfo?.year).replaceAll("{custom:vinlookupMake}", this.customAlertData?.vehicleInfo?.make).replaceAll("{custom:vinlookupModel}", "BodyText").replaceAll("{custom:damage}", getDamageString()).replaceAll("{custom:vinlookupYear}", this.customAlertData?.vehicleInfo?.year).replaceAll("{custom:vinlookupMake}", this.customAlertData?.vehicleInfo?.make).replaceAll("{custom:vinlookupModel}",
this.customAlertData?.vehicleInfo?.model); this.customAlertData?.vehicleInfo?.model);
return text;
}, },
AlertNonServiceableZipHeader(){ AlertNonServiceableZipHeader(){
const text = this.getCmsContent("AlertNonServiceableZipWidget", "HeadlineText").replaceAll("{custom:serviceZip}", this.serviceZipCode); return this.getCmsContent("AlertNonServiceableZipWidget", "HeadlineText").replaceAll("{custom:serviceZip}", this.serviceZipCode);
return text;
}, },
AlertNonServiceableZipBody(){ AlertNonServiceableZipBody(){
return this.getCmsContent("AlertNonServiceableZipWidget", "BodyText"); return this.getCmsContent("AlertNonServiceableZipWidget", "BodyText");
@ -357,8 +351,7 @@ export default {
return this.getCmsContent("AlertPerfectMatchInsuranceNotVerified", "HeadlineText"); return this.getCmsContent("AlertPerfectMatchInsuranceNotVerified", "HeadlineText");
}, },
AlertPerfectMatchInsuranceNotVerifiedBody() { AlertPerfectMatchInsuranceNotVerifiedBody() {
return this.getCmsContent("AlertPerfectMatchInsuranceNotVerified", "BodyText").replaceAll("{custom:damage}", return this.getCmsContent("AlertPerfectMatchInsuranceNotVerified", "BodyText").replaceAll("{custom:damage}", getDamageString())
getDamageString())
}, },
AlertPerfectMatchInsuranceVerifiedHeader () { AlertPerfectMatchInsuranceVerifiedHeader () {
return this.getCmsContent("AlertPerfectMatchInsuranceVerified", "HeadlineText"); return this.getCmsContent("AlertPerfectMatchInsuranceVerified", "HeadlineText");