Merge pull request #2194 from Safelite/revert-2193-feature/CASH-77

Revert "CASH-77: remove unneeded call to save email"
This commit is contained in:
AdamCaouetteSafelite 2025-01-14 10:44:35 -05:00 committed by GitHub
commit 42cc81913f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -78,13 +78,16 @@ export default {
this.modal.resetButtonStyle();
},
async saveProgress() {
// send store call to send to new API (that triggers an email send)
this.$emit("save-progress");
// save email address to store
await this.dispatchStoreAction(storeActions.SAVE_EMAIL, this.userInput, false);
// hide save progress button; show success message alert
this.isProgressSaved = true;
this.modal.closeModal();
// send store call to send to new API (that triggers an email send)
this.$emit("save-progress");
},
},

View file

@ -466,6 +466,9 @@ export default {
},
},
methods: {
async handleClick() {
await saveQuote({ pageNameToLog: "quote" });
},
openModalAction(modalName) {
this.$refs[modalName].openModal();
},