Merge branch 'develop' into feature/CSR-108
This commit is contained in:
commit
3818afbe24
10 changed files with 15 additions and 19 deletions
|
|
@ -166,7 +166,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleCheckedChanged(val) {
|
handleCheckedChanged(val) {
|
||||||
if(this.selectingInitiatesLoad) {
|
if(this.selectingInitiatesLoad) {
|
||||||
this.selectedValues = [val.value];
|
this.selectedValues = val.value;
|
||||||
} else {
|
} else {
|
||||||
if(Array.isArray(this.selectedValues)) {
|
if(Array.isArray(this.selectedValues)) {
|
||||||
const newSelectedValues = this.selectedValues;
|
const newSelectedValues = this.selectedValues;
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ describe("estimate.vue", () => {
|
||||||
//Arrange
|
//Arrange
|
||||||
const { wrapper } = setupMocks({});
|
const { wrapper } = setupMocks({});
|
||||||
await wrapper.setData({
|
await wrapper.setData({
|
||||||
selectedValues: [vinLookupMethodSelections.HOMEADDRESS]
|
selectedVinLookupMethod: vinLookupMethodSelections.HOMEADDRESS
|
||||||
})
|
})
|
||||||
|
|
||||||
//Act
|
//Act
|
||||||
|
|
@ -97,7 +97,7 @@ describe("estimate.vue", () => {
|
||||||
//Arrange
|
//Arrange
|
||||||
const { wrapper } = setupMocks({});
|
const { wrapper } = setupMocks({});
|
||||||
await wrapper.setData({
|
await wrapper.setData({
|
||||||
selectedValues: [vinLookupMethodSelections.MANUALVIN]
|
selectedVinLookupMethod: vinLookupMethodSelections.MANUALVIN
|
||||||
})
|
})
|
||||||
|
|
||||||
//Act
|
//Act
|
||||||
|
|
@ -132,7 +132,7 @@ describe("estimate.vue", () => {
|
||||||
//Arrange
|
//Arrange
|
||||||
const { wrapper } = setupMocks({});
|
const { wrapper } = setupMocks({});
|
||||||
await wrapper.setData({
|
await wrapper.setData({
|
||||||
selectedValues: [vinLookupMethodSelections.LICENSEPLATE]
|
selectedVinLookupMethod: vinLookupMethodSelections.LICENSEPLATE
|
||||||
})
|
})
|
||||||
|
|
||||||
//Act
|
//Act
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
:answers="answersFromCms"
|
:answers="answersFromCms"
|
||||||
groupName="vinLookupMethodOption"
|
groupName="vinLookupMethodOption"
|
||||||
buttonType="listButton"
|
buttonType="listButton"
|
||||||
v-model="selectedValues"
|
v-model="selectedVinLookupMethod"
|
||||||
isRequired
|
isRequired
|
||||||
validationRules="option-required"
|
validationRules="option-required"
|
||||||
/>
|
/>
|
||||||
|
|
@ -60,7 +60,7 @@ export default {
|
||||||
name: "estimate",
|
name: "estimate",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
selectedValues: [],
|
selectedVinLookupMethod: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -94,20 +94,20 @@ export default {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
if (this.selectedValues[0] === vinLookupMethodSelections.MANUALVIN) {
|
if (this.selectedVinLookupMethod === vinLookupMethodSelections.MANUALVIN) {
|
||||||
await this.dispatchStoreAction(storeActions.CLEAR_VIN);
|
await this.dispatchStoreAction(storeActions.CLEAR_VIN);
|
||||||
return this.$router.navigate(
|
return this.$router.navigate(
|
||||||
this.navigationScenarios.SELECTED_MANUAL_VIN,
|
this.navigationScenarios.SELECTED_MANUAL_VIN,
|
||||||
this.$route
|
this.$route
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (this.selectedValues[0] === vinLookupMethodSelections.LICENSEPLATE) {
|
if (this.selectedVinLookupMethod === vinLookupMethodSelections.LICENSEPLATE) {
|
||||||
return this.$router.navigate(
|
return this.$router.navigate(
|
||||||
this.navigationScenarios.SELECTED_LICENSE_PLATE,
|
this.navigationScenarios.SELECTED_LICENSE_PLATE,
|
||||||
this.$route
|
this.$route
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (this.selectedValues[0] === vinLookupMethodSelections.HOMEADDRESS) {
|
if (this.selectedVinLookupMethod === vinLookupMethodSelections.HOMEADDRESS) {
|
||||||
return this.$router.navigate(
|
return this.$router.navigate(
|
||||||
this.navigationScenarios.SELECTED_HOME_ADDRESS,
|
this.navigationScenarios.SELECTED_HOME_ADDRESS,
|
||||||
this.$route
|
this.$route
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,7 @@ export default {
|
||||||
},
|
},
|
||||||
selectedValue: {
|
selectedValue: {
|
||||||
get: function() {
|
get: function() {
|
||||||
const modelValueAsArray = this.modelValue ? [this.modelValue] : [];
|
return this.modelValue
|
||||||
return modelValueAsArray;
|
|
||||||
},
|
},
|
||||||
set: function(newValue) {
|
set: function(newValue) {
|
||||||
this.$emit("update:modelValue", newValue);
|
this.$emit("update:modelValue", newValue);
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,7 @@ export default {
|
||||||
},
|
},
|
||||||
selectedValue: {
|
selectedValue: {
|
||||||
get: function() {
|
get: function() {
|
||||||
const modelValueAsArray = this.modelValue ? [this.modelValue] : [];
|
return this.modelValue
|
||||||
return modelValueAsArray;
|
|
||||||
},
|
},
|
||||||
set: function(newValue) {
|
set: function(newValue) {
|
||||||
this.$emit("update:modelValue", newValue);
|
this.$emit("update:modelValue", newValue);
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,7 @@ export default {
|
||||||
},
|
},
|
||||||
selectedValue: {
|
selectedValue: {
|
||||||
get: function() {
|
get: function() {
|
||||||
const modelValueAsArray = this.modelValue ? [this.modelValue] : [];
|
return this.modelValue
|
||||||
return modelValueAsArray;
|
|
||||||
},
|
},
|
||||||
set: function(newValue) {
|
set: function(newValue) {
|
||||||
this.$emit("update:modelValue", newValue);
|
this.$emit("update:modelValue", newValue);
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,12 @@ import styleQuestion from "@/layouts/vehicle-style/style-question/style-question
|
||||||
import funnelHeader from "@/common-components/funnel-header/funnel-header";
|
import funnelHeader from "@/common-components/funnel-header/funnel-header";
|
||||||
import funnelSubHeader from "@/common-components/funnel-sub-header/funnel-sub-header";
|
import funnelSubHeader from "@/common-components/funnel-sub-header/funnel-sub-header";
|
||||||
import vehicleBanner from "@/common-components/vehicle-banner/vehicle-banner";
|
import vehicleBanner from "@/common-components/vehicle-banner/vehicle-banner";
|
||||||
|
|
||||||
// Supporting files
|
// Supporting files
|
||||||
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||||
import { storeActions } from "@/constants/store-actions";
|
import { storeActions } from "@/constants/store-actions";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
import { storeMutations } from "@/constants/store-mutations";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "vehicle-style",
|
name: "vehicle-style",
|
||||||
|
|
|
||||||
|
|
@ -37,8 +37,7 @@ export default {
|
||||||
},
|
},
|
||||||
selectedValue: {
|
selectedValue: {
|
||||||
get: function() {
|
get: function() {
|
||||||
const modelValueAsArray = this.modelValue ? [this.modelValue] : [];
|
return this.modelValue
|
||||||
return modelValueAsArray;
|
|
||||||
},
|
},
|
||||||
set: function(newValue) {
|
set: function(newValue) {
|
||||||
this.$emit("update:modelValue", newValue);
|
this.$emit("update:modelValue", newValue);
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,7 @@ export default {
|
||||||
previouslyEnteredCarId: '',
|
previouslyEnteredCarId: '',
|
||||||
invalidZip: '',
|
invalidZip: '',
|
||||||
vinPopulatedOnPageLoad: this.getVinFromStore()?.length > 0,
|
vinPopulatedOnPageLoad: this.getVinFromStore()?.length > 0,
|
||||||
|
isSelectedGlassAvailableForVehicle: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
|
||||||
|
|
@ -706,7 +706,6 @@ export const actions = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
saveVehicleStyle(context, style) {
|
saveVehicleStyle(context, style) {
|
||||||
|
|
||||||
//Reset dependent state when changing
|
//Reset dependent state when changing
|
||||||
if (context.state.order.vehicle.style !== style) {
|
if (context.state.order.vehicle.style !== style) {
|
||||||
context.commit(storeMutations.UPDATE_CAR_ID, null);
|
context.commit(storeMutations.UPDATE_CAR_ID, null);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue