Merge pull request #339 from Safelite/feature/digital/SSR-419
Had to reset values prior to getting new values because if the same v…
This commit is contained in:
commit
13fb3c0b6e
1 changed files with 4 additions and 9 deletions
|
|
@ -140,33 +140,28 @@ export default {
|
|||
watch: {
|
||||
selectedYear(value) {
|
||||
this.mainStore.updateVehicleYear(value);
|
||||
this.$refs["vehicleMakeQuestion"].clearValues();
|
||||
if(value)
|
||||
{
|
||||
this.$refs["vehicleMakeQuestion"].getNewValues();
|
||||
}
|
||||
else{
|
||||
this.$refs["vehicleMakeQuestion"].clearValues();
|
||||
}
|
||||
},
|
||||
selectedMake(value) {
|
||||
this.mainStore.updateVehicleMake(value);
|
||||
this.$refs["vehicleModelQuestion"].clearValues();
|
||||
if(value)
|
||||
{
|
||||
this.$refs["vehicleModelQuestion"].getNewValues();
|
||||
}
|
||||
else{
|
||||
this.$refs["vehicleModelQuestion"].clearValues();
|
||||
}
|
||||
},
|
||||
selectedModel(value) {
|
||||
this.mainStore.updateVehicleModel(value);
|
||||
this.$refs["vehicleStyleQuestion"].clearValues();
|
||||
if(value)
|
||||
{
|
||||
this.$refs["vehicleStyleQuestion"].getNewValues();
|
||||
}
|
||||
else{
|
||||
this.$refs["vehicleStyleQuestion"].clearValues();
|
||||
}
|
||||
|
||||
},
|
||||
selectedStyle(value) {
|
||||
this.mainStore.updateVehicleStyle(value);
|
||||
|
|
|
|||
Loading…
Reference in a new issue