Merge pull request #102 from Safelite/add-updateVehicleVin-action
Add updateVehicleVin action and add more properties for updateVehicle action
This commit is contained in:
commit
d0cf09811f
1 changed files with 13 additions and 1 deletions
|
|
@ -358,11 +358,23 @@ export const useMainStore = defineStore({
|
|||
},
|
||||
|
||||
updateVehicle(vehicle) {
|
||||
// Assuming that the method caller pass all the properties.
|
||||
// otherwise need to check for undefined for every property.
|
||||
|
||||
this.order.vehicle.carId = vehicle.carId;
|
||||
this.order.vehicle.category = vehicle.category;
|
||||
this.order.vehicle.year = vehicle.year;
|
||||
this.order.vehicle.make = vehicle.make;
|
||||
this.order.vehicle.model = vehicle.model;
|
||||
this.order.vehicle.style = vehicle.style;
|
||||
this.order.vehicle.vin = vehicle.vin;
|
||||
this.order.vehicle.imageUrl = vehicle.imageUrl;
|
||||
this.order.vehicle.imageVifNumber = vehicle.imageVifNumber;
|
||||
this.order.vehicle.imageColor = vehicle.imageColor;
|
||||
this.order.vehicle.imageColor = vehicle.imageVifColor;
|
||||
},
|
||||
|
||||
updateVehicleVin(vin) {
|
||||
this.order.vehicle.vin = vin;
|
||||
},
|
||||
|
||||
resetVehicleState()
|
||||
|
|
|
|||
Loading…
Reference in a new issue