Almost clean
This commit is contained in:
parent
af9a98b11d
commit
23de2db48e
1 changed files with 15 additions and 6 deletions
|
|
@ -154,7 +154,7 @@ export default {
|
||||||
var { issConfig } = this.mainStore;
|
var { issConfig } = this.mainStore;
|
||||||
return {
|
return {
|
||||||
vehicle,
|
vehicle,
|
||||||
customerEmail: customer.email,
|
customerEmail: customer.emailAddress,
|
||||||
payment,
|
payment,
|
||||||
schedule,
|
schedule,
|
||||||
serviceLocation,
|
serviceLocation,
|
||||||
|
|
@ -179,7 +179,7 @@ export default {
|
||||||
vehicleYear: this.vehicle.year,
|
vehicleYear: this.vehicle.year,
|
||||||
vehicleMake: this.vehicle.make,
|
vehicleMake: this.vehicle.make,
|
||||||
vehicleModel: this.vehicle.model,
|
vehicleModel: this.vehicle.model,
|
||||||
address: this.serviceLocationFullAddress,
|
address: this.appointmentAddress,
|
||||||
inShopDuration: this.inShopAppointmentDuration,
|
inShopDuration: this.inShopAppointmentDuration,
|
||||||
email: this.customerEmail,
|
email: this.customerEmail,
|
||||||
CUSTOMER_PORTAL_URL: applicationConfig.CUSTOMER_PORTAL_URL,
|
CUSTOMER_PORTAL_URL: applicationConfig.CUSTOMER_PORTAL_URL,
|
||||||
|
|
@ -254,16 +254,25 @@ export default {
|
||||||
this.serviceLocation.zipCode
|
this.serviceLocation.zipCode
|
||||||
}`;
|
}`;
|
||||||
},
|
},
|
||||||
providerAddress() {
|
titleCaseProviderAddress() {
|
||||||
return toTitleCase(this.providerAddress?.streetAddress);
|
return toTitleCase(this.providerAddress?.streetAddress);
|
||||||
},
|
},
|
||||||
providerCity() {
|
titleCaseProviderCity() {
|
||||||
return toTitleCase(this.providerAddress?.city);
|
return toTitleCase(this.providerAddress?.city);
|
||||||
},
|
},
|
||||||
|
appointmentAddress() {
|
||||||
|
if (this.isMobileAppointment){
|
||||||
|
return this.serviceLocationFullAddress;
|
||||||
|
}
|
||||||
|
if (this.isDropOffAppointment || this.isInShopAppointment){
|
||||||
|
return this.providerFullAddress;
|
||||||
|
}
|
||||||
|
return null
|
||||||
|
},
|
||||||
providerFullAddress() {
|
providerFullAddress() {
|
||||||
var { state, zipCode } = this.providerAddress;
|
var { state, zipCode } = this.providerAddress;
|
||||||
return this.providerAddress
|
return this.titleCaseProviderAddress
|
||||||
? `${this.providerAddress},<br/> ${this.providerCity}, ${state} ${zipCode}`
|
? `${this.titleCaseProviderAddress},<br/> ${this.titleCaseProviderCity}, ${state} ${zipCode}`
|
||||||
: '';
|
: '';
|
||||||
},
|
},
|
||||||
appointmentWordingText() {
|
appointmentWordingText() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue