CSR-297 chip count reset in page and not store
This commit is contained in:
parent
3e91d1dbee
commit
acc7adcb4a
2 changed files with 3 additions and 4 deletions
|
|
@ -239,8 +239,10 @@ export default {
|
|||
|
||||
store.commit(this.storeMutations.UPDATE_IS_REPAIR, this.isWindshieldRepair);
|
||||
|
||||
if (windshieldChipCount){
|
||||
if (this.isWindshieldRepair && windshieldChipCount){
|
||||
store.commit(this.storeMutations.UPDATE_NUMBER_OF_CHIPS, parseInt(windshieldChipCount));
|
||||
} else {
|
||||
store.commit(this.storeMutations.UPDATE_NUMBER_OF_CHIPS, null);
|
||||
}
|
||||
|
||||
store.commit(this.storeMutations.UPDATE_GLASS_TO_REPLACE, this.selectedGlassToReplace());
|
||||
|
|
|
|||
|
|
@ -68,9 +68,6 @@ export const mutations = {
|
|||
},
|
||||
updateIsRepair(state, isRepair){
|
||||
state.order.damage.isRepair = isRepair;
|
||||
if (!isRepair){
|
||||
this.commit(storeMutations.UPDATE_NUMBER_OF_CHIPS, null);
|
||||
}
|
||||
},
|
||||
updateNumberOfChips(state, numberOfChips){
|
||||
state.order.damage.numberOfChips = numberOfChips;
|
||||
|
|
|
|||
Loading…
Reference in a new issue