Merge pull request #1117 from Safelite/feature/richardson/INSR-8504
few updates
This commit is contained in:
commit
5be3511a77
3 changed files with 28 additions and 10 deletions
|
|
@ -29,7 +29,10 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async beforeMount() {
|
async beforeMount() {
|
||||||
await this.createMapWithMarkersForAddresses(this.markers);
|
await this.createMapWithMarkersForAddresses(this.markers)
|
||||||
|
.catch(() => {
|
||||||
|
console.error('Error creating map with markers: if handled jest fails to run tests');
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getMap(center) {
|
async getMap(center) {
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
:schedulingInshopAvailabilityRating="inShopAvailabilityRating"
|
:schedulingInshopAvailabilityRating="inShopAvailabilityRating"
|
||||||
@appointmentTypeChanged="appointmentTypeChangedFromServiceLocation"
|
@appointmentTypeChanged="appointmentTypeChangedFromServiceLocation"
|
||||||
@cityUpdated="cityUpdatedFromServiceLocation"
|
@cityUpdated="cityUpdatedFromServiceLocation"
|
||||||
|
@clearMobileData="clearMobileDataFromServiceLocation"
|
||||||
@inShopZipUpdated="inShopZipUpdatedFromServiceLocation"
|
@inShopZipUpdated="inShopZipUpdatedFromServiceLocation"
|
||||||
@mobileZipUpdated="mobileZipUpdatedFromServiceLocation"
|
@mobileZipUpdated="mobileZipUpdatedFromServiceLocation"
|
||||||
@providerChanged="providerChangedFromServiceLocation" />
|
@providerChanged="providerChangedFromServiceLocation" />
|
||||||
|
|
@ -469,6 +470,14 @@ export default {
|
||||||
cityUpdatedFromServiceLocation(newCity) {
|
cityUpdatedFromServiceLocation(newCity) {
|
||||||
this.selectedServiceLocationCity = newCity;
|
this.selectedServiceLocationCity = newCity;
|
||||||
},
|
},
|
||||||
|
clearMobileDataFromServiceLocation() {
|
||||||
|
if (this.selectedServiceLocation) {
|
||||||
|
this.selectedServiceLocation.mobileProviderNumber = null;
|
||||||
|
}
|
||||||
|
this.mobileDatesData = [];
|
||||||
|
this.mobileProviderNumber = null;
|
||||||
|
this.selectedMobileZipCode = null;
|
||||||
|
},
|
||||||
dateSelectedFromPicker(date) {
|
dateSelectedFromPicker(date) {
|
||||||
this.selectedDate = date;
|
this.selectedDate = date;
|
||||||
this.showDatePickerError = false;
|
this.showDatePickerError = false;
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@ export default {
|
||||||
serviceZipQuestion
|
serviceZipQuestion
|
||||||
},
|
},
|
||||||
mixins: [baseFormMixin],
|
mixins: [baseFormMixin],
|
||||||
emits: ['appointment-type-changed', 'city-updated', 'in-shop-zip-updated', 'mobile-zip-updated', 'provider-changed'],
|
emits: ['appointment-type-changed', 'city-updated', 'clear-mobile-data', 'in-shop-zip-updated', 'mobile-zip-updated', 'provider-changed'],
|
||||||
props: {
|
props: {
|
||||||
schedulingInshopAvailabilityRating: {
|
schedulingInshopAvailabilityRating: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
@ -449,14 +449,20 @@ export default {
|
||||||
async processMobileZipCodeChange() {
|
async processMobileZipCodeChange() {
|
||||||
showIssLoadingModal(true);
|
showIssLoadingModal(true);
|
||||||
await this.updateMobileZip();
|
await this.updateMobileZip();
|
||||||
const updateMobileZipServiceLocationObj = {
|
|
||||||
mobileProviderNumber: this.mobileProviderNumber,
|
if (!this.mobileZipError) {
|
||||||
provider: null,
|
const updateMobileZipServiceLocationObj = {
|
||||||
refreshDatePicker: true,
|
mobileProviderNumber: this.mobileProviderNumber,
|
||||||
zipCode: this.zipCode,
|
provider: null,
|
||||||
zipCodeCtu: this.zipCodeCtu
|
refreshDatePicker: true,
|
||||||
};
|
zipCode: this.zipCode,
|
||||||
this.$emit('mobile-zip-updated', updateMobileZipServiceLocationObj);
|
zipCodeCtu: this.zipCodeCtu
|
||||||
|
};
|
||||||
|
this.$emit('mobile-zip-updated', updateMobileZipServiceLocationObj);
|
||||||
|
} else {
|
||||||
|
this.$emit('clear-mobile-data');
|
||||||
|
showIssLoadingModal(false);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
setCtuForMobile(val) {
|
setCtuForMobile(val) {
|
||||||
this.zipCodeCtu = val;
|
this.zipCodeCtu = val;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue