save supporting items on windshield repair
This commit is contained in:
parent
9af9faca33
commit
2b4587c1f9
1 changed files with 7 additions and 1 deletions
|
|
@ -364,11 +364,17 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
await this.mainStore.saveVehicleDamage(
|
this.mainStore.saveVehicleDamage(
|
||||||
this.isWindshieldRepair,
|
this.isWindshieldRepair,
|
||||||
this.selectedGlassToReplace(),
|
this.selectedGlassToReplace(),
|
||||||
this.selectedWindshieldOptions.selectedWindshieldChipCount
|
this.selectedWindshieldOptions.selectedWindshieldChipCount
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (this.isWindshieldRepair) {
|
||||||
|
const supportingItems = await useMainStore().getSupportingItems();
|
||||||
|
useMainStore().saveSupportingItems(supportingItems.data);
|
||||||
|
}
|
||||||
|
|
||||||
return this.navigateForward();
|
return this.navigateForward();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue