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() {
|
isAppointmentTypeDisplayed() {
|
||||||
return (
|
return this.zipCode && !this.displayNoShopsAlert;
|
||||||
this.zipCode && !this.displayNoShopsAlert
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
// Specifically check for isRecalibrationServiceableMobile === false, not null or true.
|
|
||||||
requiresInshopRecalibration() {
|
requiresInshopRecalibration() {
|
||||||
|
// Specifically check for isRecalibrationServiceableMobile === false, not null or true.
|
||||||
return (
|
return (
|
||||||
this.isServiceableInshop &&
|
this.isServiceableInshop &&
|
||||||
this.isGlassServiceableMobile &&
|
this.isGlassServiceableMobile &&
|
||||||
|
|
@ -351,7 +349,9 @@ export default {
|
||||||
return store.getters.order.serviceLocation.zipCode;
|
return store.getters.order.serviceLocation.zipCode;
|
||||||
},
|
},
|
||||||
getSelectedAppointmentType() {
|
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() {
|
getSelectedProvider() {
|
||||||
return store.getters.order.serviceLocation.provider ?? null;
|
return store.getters.order.serviceLocation.provider ?? null;
|
||||||
|
|
|
||||||
|
|
@ -192,9 +192,9 @@ export default {
|
||||||
const index = providers.findIndex(
|
const index = providers.findIndex(
|
||||||
(provider) => provider.providerNumber == selectedProviderNumber
|
(provider) => provider.providerNumber == selectedProviderNumber
|
||||||
);
|
);
|
||||||
|
|
||||||
return index;
|
return index;
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
selectedAppointmentType: {
|
selectedAppointmentType: {
|
||||||
|
|
@ -215,7 +215,10 @@ export default {
|
||||||
await this.$nextTick();
|
await this.$nextTick();
|
||||||
|
|
||||||
if (this.selectedAppointmentType) {
|
if (this.selectedAppointmentType) {
|
||||||
const selectedShopIndex = this.getSelectedProviderIndex(newValue, this.modelValue);
|
const selectedShopIndex = this.getSelectedProviderIndex(
|
||||||
|
newValue,
|
||||||
|
this.modelValue
|
||||||
|
);
|
||||||
|
|
||||||
if (selectedShopIndex >= 3) {
|
if (selectedShopIndex >= 3) {
|
||||||
await this.getNextShopsFromList(selectedShopIndex + 1);
|
await this.getNextShopsFromList(selectedShopIndex + 1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue