Update fmg's apartmentNumberOrBusinessName to iss streetAddress2
This commit is contained in:
parent
a5fd5ad467
commit
035e03e72f
2 changed files with 9 additions and 8 deletions
|
|
@ -43,7 +43,7 @@
|
|||
:onModalOpenedCallback="onModalOpened"
|
||||
:onModalClosedCallback="onModalClosed"
|
||||
@isModalOpened="setModalStatus"
|
||||
@footer-button-event="setMobileLocation">
|
||||
@footerButtonEvent="setMobileLocation">
|
||||
<template v-if="isModalOpened">
|
||||
<addressQuestions
|
||||
ref="addressQuestions"
|
||||
|
|
@ -109,7 +109,7 @@ export default {
|
|||
default: () => ({
|
||||
addressQuestions: {
|
||||
streetAddress: '',
|
||||
apartmentNumberOrBusinessName: '',
|
||||
streetAddress2: '',
|
||||
city: '',
|
||||
state: '',
|
||||
zipCode: ''
|
||||
|
|
@ -286,12 +286,14 @@ export default {
|
|||
await this.onZipUpdateCallback(serviceZipCode);
|
||||
}
|
||||
// Update the page level model
|
||||
console.log(this.internalModel);
|
||||
this.$emit('update:modelValue', this.internalModel);
|
||||
|
||||
this.closeModal();
|
||||
}
|
||||
} else {
|
||||
// Update the page level model
|
||||
console.log(this.internalModel);
|
||||
this.$emit('update:modelValue', this.internalModel);
|
||||
|
||||
this.closeModal();
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
streetAddress: this.getServiceAddressFromStore(),
|
||||
apartmentNumberOrBusinessName: this.getServiceAddress2FromStore(),
|
||||
streetAddress2: this.getServiceAddress2FromStore(),
|
||||
city: this.getServiceCityFromStore(),
|
||||
state: this.getServiceStateFromStore(),
|
||||
zipCode: this.getServiceZipCodeFromStore(),
|
||||
|
|
@ -243,7 +243,7 @@ export default {
|
|||
return {
|
||||
addressQuestions: {
|
||||
streetAddress: this.streetAddress,
|
||||
apartmentNumberOrBusinessName: this.apartmentNumberOrBusinessName,
|
||||
streetAddress2: this.streetAddress2,
|
||||
city: this.city,
|
||||
state: this.state,
|
||||
zipCode: this.zipCode
|
||||
|
|
@ -253,8 +253,7 @@ export default {
|
|||
},
|
||||
set(newValue) {
|
||||
this.streetAddress = newValue.addressQuestions.streetAddress;
|
||||
this.apartmentNumberOrBusinessName =
|
||||
newValue.addressQuestions.apartmentNumberOrBusinessName;
|
||||
this.streetAddress2 = newValue.addressQuestions.streetAddress2;
|
||||
this.city = newValue.addressQuestions.city;
|
||||
this.state = newValue.addressQuestions.state;
|
||||
this.zipCode = newValue.addressQuestions.zipCode;
|
||||
|
|
@ -342,7 +341,7 @@ export default {
|
|||
async forwardButtonAction() {
|
||||
useMainStore().saveServiceLocation({
|
||||
address: this.streetAddress,
|
||||
address2: this.apartmentNumberOrBusinessName,
|
||||
address2: this.streetAddress2,
|
||||
city: this.city,
|
||||
state: this.state,
|
||||
zipCode: this.zipCode,
|
||||
|
|
@ -417,7 +416,7 @@ export default {
|
|||
},
|
||||
resetMobileLocation() {
|
||||
this.streetAddress = '';
|
||||
this.apartmentNumberOrBusinessName = '';
|
||||
this.streetAddress2 = '';
|
||||
this.city = '';
|
||||
|
||||
this.isVehicleProtected = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue