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(); },