Removed logic that repopulated provider data needlessly
we already have it on modal load from the parent
This commit is contained in:
parent
c1f7f7f734
commit
fab08bd179
1 changed files with 4 additions and 20 deletions
|
|
@ -163,16 +163,7 @@ export default {
|
|||
|
||||
},
|
||||
methods: {
|
||||
openModal(event) {
|
||||
if (event) event.preventDefault();
|
||||
if (
|
||||
!this.shopProviderData ||
|
||||
!this.shopProviderData.shopProviders ||
|
||||
!this.shopProviderData.shopProviders.length
|
||||
) {
|
||||
// Optionally show a loading message or disable the link
|
||||
return;
|
||||
}
|
||||
openModal() {
|
||||
this.$refs.shopQuestionModal.openModal();
|
||||
},
|
||||
async getNextShopsFromList(numberToGet = 3) {
|
||||
|
|
@ -257,7 +248,7 @@ export default {
|
|||
|
||||
this.localShopProviderData = this.shopProviderData;
|
||||
this.answers = [];
|
||||
this.onSearchZip();
|
||||
this.updateShopsForZip(this.newZipCode);
|
||||
this.selectedProviderNumber = this.preSelectedProviderNumber;
|
||||
if (
|
||||
(!this.selectedProviderNumber ||
|
||||
|
|
@ -273,17 +264,10 @@ export default {
|
|||
this.modal.closeModal();
|
||||
},
|
||||
onModalClosed() {
|
||||
this.resetsOnZipInput();
|
||||
},
|
||||
resetsOnZipInput() {
|
||||
this.resetAlerts();
|
||||
},
|
||||
async onSearchZip(event) {
|
||||
if (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
this.resetsOnZipInput();
|
||||
async onSearchZip() {
|
||||
this.resetAlerts();
|
||||
const zipCodeData = await this.getZipCodeData(
|
||||
this.newZipCode,
|
||||
"service-location"
|
||||
|
|
|
|||
Loading…
Reference in a new issue