Prettified
This commit is contained in:
parent
c2b683114f
commit
1283cfab2b
2 changed files with 11 additions and 8 deletions
|
|
@ -279,12 +279,10 @@ export default {
|
|||
);
|
||||
},
|
||||
isAppointmentTypeDisplayed() {
|
||||
return (
|
||||
this.zipCode && !this.displayNoShopsAlert
|
||||
);
|
||||
return this.zipCode && !this.displayNoShopsAlert;
|
||||
},
|
||||
// Specifically check for isRecalibrationServiceableMobile === false, not null or true.
|
||||
requiresInshopRecalibration() {
|
||||
// Specifically check for isRecalibrationServiceableMobile === false, not null or true.
|
||||
return (
|
||||
this.isServiceableInshop &&
|
||||
this.isGlassServiceableMobile &&
|
||||
|
|
@ -351,7 +349,9 @@ export default {
|
|||
return store.getters.order.serviceLocation.zipCode;
|
||||
},
|
||||
getSelectedAppointmentType() {
|
||||
return store.getters.order.serviceLocation.appointmentType == "None" ? null : store.getters.order.serviceLocation.appointmentType;
|
||||
return store.getters.order.serviceLocation.appointmentType == "None"
|
||||
? null
|
||||
: store.getters.order.serviceLocation.appointmentType;
|
||||
},
|
||||
getSelectedProvider() {
|
||||
return store.getters.order.serviceLocation.provider ?? null;
|
||||
|
|
|
|||
|
|
@ -192,9 +192,9 @@ export default {
|
|||
const index = providers.findIndex(
|
||||
(provider) => provider.providerNumber == selectedProviderNumber
|
||||
);
|
||||
|
||||
|
||||
return index;
|
||||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
selectedAppointmentType: {
|
||||
|
|
@ -215,7 +215,10 @@ export default {
|
|||
await this.$nextTick();
|
||||
|
||||
if (this.selectedAppointmentType) {
|
||||
const selectedShopIndex = this.getSelectedProviderIndex(newValue, this.modelValue);
|
||||
const selectedShopIndex = this.getSelectedProviderIndex(
|
||||
newValue,
|
||||
this.modelValue
|
||||
);
|
||||
|
||||
if (selectedShopIndex >= 3) {
|
||||
await this.getNextShopsFromList(selectedShopIndex + 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue