Add address rendering
This commit is contained in:
parent
a1f47c2f07
commit
e4997d67ca
1 changed files with 24 additions and 1 deletions
|
|
@ -25,7 +25,30 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
displayContent() {
|
displayContent() {
|
||||||
return [`Address placeholder`];
|
return [
|
||||||
|
`${this.addressInfo.address}${this.addressInfo.address2 ? ", " : ""}${
|
||||||
|
this.addressInfo.address2
|
||||||
|
}, ${this.addressInfo.city}, ${this.addressInfo.state} ${this.addressInfo.zipCode}`,
|
||||||
|
];
|
||||||
|
},
|
||||||
|
addressInfo() {
|
||||||
|
if (this.serviceLocation?.appointmentType === AppointmentTypeStrings.MOBILE) {
|
||||||
|
return {
|
||||||
|
address: this.serviceLocation?.address,
|
||||||
|
address2: this.serviceLocation?.address2,
|
||||||
|
city: this.serviceLocation?.city,
|
||||||
|
state: this.serviceLocation?.state,
|
||||||
|
zipCode: this.serviceLocation?.zipCode,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
return {
|
||||||
|
address: this.serviceLocation?.provider?.address?.streetAddress,
|
||||||
|
address2: "",
|
||||||
|
city: this.serviceLocation?.provider?.address?.city,
|
||||||
|
state: this.serviceLocation?.provider?.address?.state,
|
||||||
|
zipCode: this.serviceLocation?.provider?.address?.zipCode,
|
||||||
|
};
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue