save supporting items on windshield repair

This commit is contained in:
Bill Richardson 2023-08-29 13:46:12 -04:00
parent 9af9faca33
commit 2b4587c1f9

View file

@ -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();
}, },