Changes to work with top level page
This commit is contained in:
parent
dc86629869
commit
c97b440275
2 changed files with 17 additions and 24 deletions
|
|
@ -54,7 +54,7 @@ export default {
|
||||||
emits: ["update:modelValue"], // The component emits an event
|
emits: ["update:modelValue"], // The component emits an event
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
mobileLocationQuestionsInput: {
|
mobileLocationQuestionsInput: {
|
||||||
addressQuestions: {
|
addressQuestions: {
|
||||||
streetAddress: "",
|
streetAddress: "",
|
||||||
apartmentNumberOrBusinessName: "",
|
apartmentNumberOrBusinessName: "",
|
||||||
|
|
@ -64,9 +64,9 @@ export default {
|
||||||
},
|
},
|
||||||
isVehicleProtected: null,
|
isVehicleProtected: null,
|
||||||
isZipServiceableMobile: null,
|
isZipServiceableMobile: null,
|
||||||
isZipServiceableInShop: null
|
isZipServiceableInShop: null,
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const modalForm = useForm();
|
const modalForm = useForm();
|
||||||
|
|
@ -136,15 +136,7 @@ export default {
|
||||||
},
|
},
|
||||||
addressModel: {
|
addressModel: {
|
||||||
get: function () {
|
get: function () {
|
||||||
return this.mobileLocationQuestionsModel.addressQuestions;
|
return this.mobileLocationQuestionsInput.addressQuestions;
|
||||||
},
|
|
||||||
},
|
|
||||||
_isVehicleProtected: {
|
|
||||||
get: function () {
|
|
||||||
return this.modelValue.isVehicleProtected;
|
|
||||||
},
|
|
||||||
set: function (newValue) {
|
|
||||||
this.$emit("update:modelValue.isVehicleProtected", newValue);
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -167,10 +159,9 @@ export default {
|
||||||
this.addressModel.zipCode = "";
|
this.addressModel.zipCode = "";
|
||||||
|
|
||||||
// Is Vehicle Protected
|
// Is Vehicle Protected
|
||||||
this.mobileLocationQuestionsModel.isVehicleProtected = null;
|
this.mobileLocationQuestionsInput.isVehicleProtected = null;
|
||||||
},
|
},
|
||||||
async setMobileLocation() {
|
async setMobileLocation() {
|
||||||
|
|
||||||
this.mobileLocationQuestionsModel = {
|
this.mobileLocationQuestionsModel = {
|
||||||
addressQuestions: {
|
addressQuestions: {
|
||||||
streetAddress: this.addressModel.streetAddress,
|
streetAddress: this.addressModel.streetAddress,
|
||||||
|
|
@ -179,11 +170,10 @@ export default {
|
||||||
state: this.addressModel.state,
|
state: this.addressModel.state,
|
||||||
zipCode: this.addressModel.zipCode,
|
zipCode: this.addressModel.zipCode,
|
||||||
},
|
},
|
||||||
isVehicleProtected: this.mobileLocationQuestionsModel.isVehicleProtected,
|
isVehicleProtected: this.mobileLocationQuestionsInput.isVehicleProtected,
|
||||||
isZipServiceableMobile: this.mobileLocationQuestionsModel.isZipServiceableMobile,
|
isZipServiceableMobile: this.mobileLocationQuestionsInput.isZipServiceableMobile,
|
||||||
isZipServiceableInShop: this.mobileLocationQuestionsModel.isZipServiceableInShop,
|
isZipServiceableInShop: this.mobileLocationQuestionsInput.isZipServiceableInShop,
|
||||||
|
};
|
||||||
}
|
|
||||||
|
|
||||||
this.closeModal();
|
this.closeModal();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,10 @@ export default {
|
||||||
state: this.state,
|
state: this.state,
|
||||||
zipCode: this.zipCode,
|
zipCode: this.zipCode,
|
||||||
},
|
},
|
||||||
};
|
isVehicleProtected: this.isVehicleProtected,
|
||||||
|
isZipServiceableMobile: this.isZipServiceableMobile,
|
||||||
|
isZipServiceableInShop: this.isZipServiceableInShop,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
set: function (newValue) {
|
set: function (newValue) {
|
||||||
this.streetAddress = newValue.streetAddress;
|
this.streetAddress = newValue.streetAddress;
|
||||||
|
|
@ -105,6 +108,9 @@ export default {
|
||||||
this.city = newValue.city;
|
this.city = newValue.city;
|
||||||
this.state = newValue.state;
|
this.state = newValue.state;
|
||||||
this.zipCode = newValue.zipCode;
|
this.zipCode = newValue.zipCode;
|
||||||
|
this.isVehicleProtected = newValue.isVehicleProtected;
|
||||||
|
this.isZipServiceableMobile = newValue.isZipServiceableMobile;
|
||||||
|
this.isZipServiceableInShop = newValue.isZipServiceableInShop;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -112,9 +118,6 @@ export default {
|
||||||
arePagePrerequisitesValid() {
|
arePagePrerequisitesValid() {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
resetMobileLocationTest() {
|
|
||||||
this.serviceZipQuestion.serviceZipCode = "43054";
|
|
||||||
},
|
|
||||||
backButtonAction() {},
|
backButtonAction() {},
|
||||||
forwardButtonAction() {},
|
forwardButtonAction() {},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue