This commit is contained in:
Leah Schumann 2023-05-10 13:58:30 -04:00
parent fe0d3f45ce
commit 8586d6d35a
2 changed files with 21 additions and 21 deletions

View file

@ -171,7 +171,7 @@ describe("shop-question.vue", () => {
serviceZipCode: "43081",
selectedAppointmentType: "Dropoff",
cmsWidgetName: cmsWidgetName,
isDisplayed: true
isDisplayed: true,
},
mountOptions: {
attachTo: document.body,
@ -227,7 +227,7 @@ describe("shop-question.vue", () => {
serviceZipCode: "43081",
selectedAppointmentType: "Dropoff",
cmsWidgetName: cmsWidgetName,
isDisplayed: true
isDisplayed: true,
},
mountOptions: {
attachTo: document.body,
@ -306,7 +306,7 @@ describe("shop-question.vue", () => {
serviceZipCode: "43081",
selectedAppointmentType: "Dropoff",
cmsWidgetName: cmsWidgetName,
isDisplayed: true
isDisplayed: true,
},
mountOptions: {
attachTo: document.body,
@ -365,7 +365,7 @@ describe("shop-question.vue", () => {
serviceZipCode: "43081",
selectedAppointmentType: "Dropoff",
cmsWidgetName: cmsWidgetName,
isDisplayed: true
isDisplayed: true,
},
mountOptions: {
attachTo: document.body,

View file

@ -193,25 +193,25 @@ export default {
}
},
},
shopProviders: {
async handler(newValue) {
this.resetAnswers();
await this.$nextTick();
// shopProviders: {
// async handler(newValue) {
// this.resetAnswers();
if (this.selectedAppointmentType) {
const selectedShopIndex = newValue.findIndex(
(provider) => provider.providerNumber == this.modelValue?.providerNumber
);
// await this.$nextTick();
if (selectedShopIndex >= 3) {
await this.getNextShopsFromList(selectedShopIndex + 1);
} else {
await this.getNextShopsFromList();
}
}
},
}
// if (this.selectedAppointmentType) {
// const selectedShopIndex = newValue.findIndex(
// (provider) => provider.providerNumber == this.modelValue?.providerNumber
// );
// if (selectedShopIndex >= 3) {
// await this.getNextShopsFromList(selectedShopIndex + 1);
// } else {
// await this.getNextShopsFromList();
// }
// }
// },
// },
},
components: {
alert,