CSR-1826
This commit is contained in:
parent
c438164f56
commit
f8b49e1713
1 changed files with 4 additions and 1 deletions
|
|
@ -1871,7 +1871,6 @@ export const actions = {
|
||||||
if (isDamageChanging) {
|
if (isDamageChanging) {
|
||||||
//Reset dependent state when changing
|
//Reset dependent state when changing
|
||||||
context.dispatch(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
|
context.dispatch(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
|
||||||
context.commit(storeMutations.UPDATE_VAPS, null);
|
|
||||||
|
|
||||||
// Save new values
|
// Save new values
|
||||||
context.commit(storeMutations.UPDATE_IS_REPAIR, isWindshieldRepair);
|
context.commit(storeMutations.UPDATE_IS_REPAIR, isWindshieldRepair);
|
||||||
|
|
@ -1881,6 +1880,10 @@ export const actions = {
|
||||||
);
|
);
|
||||||
context.commit(storeMutations.UPDATE_GLASS_TO_REPLACE, selectedGlassToReplace);
|
context.commit(storeMutations.UPDATE_GLASS_TO_REPLACE, selectedGlassToReplace);
|
||||||
}
|
}
|
||||||
|
const updateVaps = !isGlassToReplaceTheSame && isWindshieldRepairTheSame;
|
||||||
|
if (updateVaps) {
|
||||||
|
context.commit(storeMutations.UPDATE_VAPS, null);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// Vin lookup
|
// Vin lookup
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue