commit
1b07d41db8
1 changed files with 17 additions and 6 deletions
|
|
@ -98,15 +98,11 @@
|
|||
linkWidgetName="ServiceZipLinkWidget"
|
||||
modalWidgetName="ServiceZipModalWidget" />
|
||||
</div>
|
||||
<div
|
||||
class="row your-shop-location"
|
||||
v-if="appointmentType && appointmentType !== appointmentTypeStrings.MOBILE">
|
||||
<div class="row your-shop-location" v-if="showInshopComponent">
|
||||
<div class="col-12 col-md-10 col-lg-8 col-xl-7">
|
||||
<div>
|
||||
<shopLocation
|
||||
v-if="
|
||||
appointmentType && appointmentType !== appointmentTypeStrings.MOBILE
|
||||
"
|
||||
v-if="showInshopComponent"
|
||||
:selectedShop="selectedShopAnswer"
|
||||
:selectedProviderNumberFromParent="selectedProvider?.providerNumber"
|
||||
:shopProviderDataFromParent="shopProviderData"
|
||||
|
|
@ -630,6 +626,21 @@ export default {
|
|||
this.handleZipCodeChange(newValue);
|
||||
},
|
||||
},
|
||||
showInshopComponent() {
|
||||
// If we get no inshop or mobile data, then show the shoplocation component so the user is not
|
||||
// looking at a half blank screen with no way to try another zip/location.
|
||||
if (
|
||||
(this.inshopTimeSlotsData === undefined &&
|
||||
this.mobileTimeSlotsData === undefined) ||
|
||||
(this.inshopTimeSlotsData.days.length === 0 &&
|
||||
this.mobileTimeSlotsData.days.length === 0) ||
|
||||
(this.appointmentType && this.appointmentType !== AppointmentTypeStrings.MOBILE)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
isMobileSelected() {
|
||||
return (
|
||||
this.appointmentType == AppointmentTypeStrings.MOBILE ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue