From 2db0cd7b20853433c3003c1457fda7955119cedf Mon Sep 17 00:00:00 2001 From: AdamCaouetteSafelite <91896960+AdamCaouetteSafelite@users.noreply.github.com> Date: Tue, 14 Jan 2025 10:39:12 -0500 Subject: [PATCH] Revert "CASH-77: remove unneeded call to save email" --- .../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(); },