Remove isLoadingShops
This commit is contained in:
parent
9f36ed621c
commit
fac44ed8df
1 changed files with 5 additions and 11 deletions
|
|
@ -111,15 +111,14 @@ export default {
|
|||
mixins: [baseMixin],
|
||||
data() {
|
||||
return {
|
||||
internalModel: this.copyModel(this.modelValue),
|
||||
internalModel: this.copyModel(this.modelValue), // zip refactor
|
||||
answers: [],
|
||||
shopListButton: shopListButton,
|
||||
shopIndex: 0,
|
||||
localShopProviderData: this.shopProviderData,
|
||||
selectedProviderNumber: null,
|
||||
isLoadingShops: false,
|
||||
lastSearchedZip: "",
|
||||
lastSuccessfulZip: "",
|
||||
localShopProviderData: this.shopProviderData, // Why does parent manage this sometimes, but not all of the time
|
||||
selectedProviderNumber: null, // Revisit this, maybe not too hard
|
||||
lastSearchedZip: "", // zip refactor
|
||||
lastSuccessfulZip: "", // zip refactor
|
||||
displayInvalidZipAlert: false,
|
||||
displayNoShopsAlert: false,
|
||||
};
|
||||
|
|
@ -368,21 +367,17 @@ export default {
|
|||
updateShopsForZip(zipCode) {
|
||||
if (!this.appointmentType) {
|
||||
this.answers = [];
|
||||
this.isLoadingShops = false;
|
||||
return;
|
||||
}
|
||||
this.lastSearchedZip = zipCode;
|
||||
if (!zipCode) {
|
||||
this.isLoadingShops = false;
|
||||
this.answers = [];
|
||||
return;
|
||||
}
|
||||
this.isLoadingShops = true;
|
||||
if (!zipCode || !this.shopProviders.length) {
|
||||
this.answers = [];
|
||||
this.displayNoShopsAlert = true;
|
||||
this.displaySeeMoreLocationsLink = false;
|
||||
this.isLoadingShops = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -441,7 +436,6 @@ export default {
|
|||
if (mappedData.length > 0) {
|
||||
this.lastSuccessfulZip = zipCode;
|
||||
}
|
||||
this.isLoadingShops = false;
|
||||
this.displayNoShopsAlert = this.answers.length === 0;
|
||||
},
|
||||
resetModalButtonStyle() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue