Merge pull request #2076 from Safelite/rlsmerge/2024.11.07toDevelop

Rlsmerge/2024.11.07to develop
This commit is contained in:
CarlNation 2024-11-06 11:17:10 -05:00 committed by GitHub
commit f69d6db69f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 3 deletions

View file

@ -291,9 +291,17 @@ export default {
await this.dispatchStoreAction(storeActions.SAVE_VAPS, this.lineItems.vaps, false);
},
async saveVaps(vaps) {
this.lineItems.vaps = [...vaps];
async saveVaps(lineItems) {
this.lineItems.vaps = [...lineItems.vaps];
this.lineItems.promos = [...lineItems.promos];
await this.dispatchStoreAction(storeActions.SAVE_VAPS, this.lineItems.vaps, false);
await this.dispatchStoreAction(
storeActions.SAVE_ACTIVE_AND_OR_INACTIVE_PROMOS,
{
activePromos: this.lineItems.promos,
},
false
);
},
getPromoCodeList() {

View file

@ -321,7 +321,7 @@ export default {
}
this.lineItems?.promos.push(...promoCodeData.promoCode);
this.$emit('promoAdded', this.lineItems.vaps);
this.$emit("promoAdded", this.lineItems);
this.closeModal();
} else {