From d8d615f7a2f99d8314b7f4d5afd3d1bbaa35b4a8 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Wed, 15 Jan 2025 12:19:18 -0500 Subject: [PATCH] Revert "Merge pull request #2193 from Safelite/feature/CASH-77" This reverts commit 28d8447dae5f81b126c20e580ae715d79551534d, reversing changes made to e5692e9949ca0e0950d43bea9ce3b242e4087abb. --- .../save-progress-modal-question.vue | 7 +++++-- src/layouts/quote/quote.vue | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/fmg-components/save-progress-modal-question/save-progress-modal-question.vue b/src/fmg-components/save-progress-modal-question/save-progress-modal-question.vue index e5f38fa2f..4ff6304f5 100644 --- a/src/fmg-components/save-progress-modal-question/save-progress-modal-question.vue +++ b/src/fmg-components/save-progress-modal-question/save-progress-modal-question.vue @@ -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"); }, }, diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index f8e43f73a..7fcb506ce 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -466,6 +466,9 @@ export default { }, }, methods: { + async handleClick() { + await saveQuote({ pageNameToLog: "quote" }); + }, openModalAction(modalName) { this.$refs[modalName].openModal(); },