Merge pull request #2076 from Safelite/rlsmerge/2024.11.07toDevelop
Rlsmerge/2024.11.07to develop
This commit is contained in:
commit
f69d6db69f
2 changed files with 11 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue