changes to ensure vin is saved if moving backward through flow and restarting vin lookup
This commit is contained in:
parent
d808f8d7f7
commit
c282e3bfca
1 changed files with 8 additions and 5 deletions
|
|
@ -341,6 +341,7 @@ export const useMainStore = defineStore({
|
||||||
|
|
||||||
// PartsOrQuestions API Actions
|
// PartsOrQuestions API Actions
|
||||||
async getPartsOrQuestions() {
|
async getPartsOrQuestions() {
|
||||||
|
this.resetGlassPartsState();
|
||||||
const vehicle = this.vehicle;
|
const vehicle = this.vehicle;
|
||||||
const damage = this.damage;
|
const damage = this.damage;
|
||||||
const order = this.order;
|
const order = this.order;
|
||||||
|
|
@ -996,9 +997,10 @@ export const useMainStore = defineStore({
|
||||||
}
|
}
|
||||||
|
|
||||||
//Save new values
|
//Save new values
|
||||||
this.updateVehicle(vehicleInfo);
|
|
||||||
this.updateRegistration(registrationInfo);
|
this.updateRegistration(registrationInfo);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
this.updateVehicle(vehicleInfo);
|
||||||
},
|
},
|
||||||
saveVin({ isSelectedGlassAvailableForVehicle, vehicleInfo }) {
|
saveVin({ isSelectedGlassAvailableForVehicle, vehicleInfo }) {
|
||||||
//Reset dependent state when changing
|
//Reset dependent state when changing
|
||||||
|
|
@ -1031,9 +1033,10 @@ export const useMainStore = defineStore({
|
||||||
|
|
||||||
//Save new values
|
//Save new values
|
||||||
this.updateVehicle(vehicleInfo);
|
this.updateVehicle(vehicleInfo);
|
||||||
this.updateRegistration(registrationInfo);
|
}
|
||||||
}
|
|
||||||
},
|
this.updateRegistration(registrationInfo);
|
||||||
|
},
|
||||||
|
|
||||||
resetRegistrationAndDependencies() {
|
resetRegistrationAndDependencies() {
|
||||||
this.resetRegistrationState();
|
this.resetRegistrationState();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue