CASH-1159
CASH-1159 reverting changes for now
This commit is contained in:
parent
4ed29efa3b
commit
fb1eb0487a
1 changed files with 3 additions and 15 deletions
|
|
@ -425,7 +425,6 @@ export default {
|
||||||
shopProviderData: null,
|
shopProviderData: null,
|
||||||
navigatingForward: false,
|
navigatingForward: false,
|
||||||
shopListButton: shopListButton,
|
shopListButton: shopListButton,
|
||||||
lastInshopProvider: this.getSelectedProviderFromStore() || null,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
|
|
@ -1117,13 +1116,6 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.updateSelectedProvider(selectedProvider);
|
this.updateSelectedProvider(selectedProvider);
|
||||||
}
|
}
|
||||||
if (
|
|
||||||
this.appointmentType === this.appointmentTypeStrings.IN_SHOP ||
|
|
||||||
this.appointmentType === this.appointmentTypeStrings.DROP_OFF ||
|
|
||||||
this.appointmentType === this.appointmentTypeStrings.IN_SHOP_OR_DROP_OFF
|
|
||||||
) {
|
|
||||||
this.lastInshopProvider = this.selectedProvider;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
async getMoreScheduleData(startDate, endDate) {
|
async getMoreScheduleData(startDate, endDate) {
|
||||||
// called only when "View more dates" is clicked; not on initial page load
|
// called only when "View more dates" is clicked; not on initial page load
|
||||||
|
|
@ -1613,15 +1605,11 @@ export default {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
} else if (
|
} else if (
|
||||||
(this.appointmentType === this.appointmentTypeStrings.IN_SHOP ||
|
!this.selectedProvider?.address?.streetAddress &&
|
||||||
this.appointmentType === this.appointmentTypeStrings.DROP_OFF ||
|
this.shopProviderData?.shopProviders?.length
|
||||||
this.appointmentType === this.appointmentTypeStrings.IN_SHOP_OR_DROP_OFF) &&
|
|
||||||
this.lastInshopProvider.address.city
|
|
||||||
) {
|
) {
|
||||||
this.selectedProvider = this.lastInshopProvider;
|
|
||||||
} else {
|
|
||||||
this.selectedProvider = this.shopProviderData.shopProviders[0];
|
this.selectedProvider = this.shopProviderData.shopProviders[0];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleZipCodeChange(newZipCode) {
|
handleZipCodeChange(newZipCode) {
|
||||||
this.resetMobileLocation();
|
this.resetMobileLocation();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue