Add more properties to be updated
This commit is contained in:
parent
f8766cac89
commit
43fa1c7270
1 changed files with 9 additions and 1 deletions
|
|
@ -358,11 +358,19 @@ 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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue