diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 0ff86494d..6d4d07e46 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -166,6 +166,7 @@ import { getDeviceIdValue, } from "@/helpers/heritage-integration/cookie-helper"; import { showFmgLoadingModal } from "@/helpers/loading-modal-helper"; +import { fmgPageValues } from "@/router/router-constants/fmgPage-values"; defineRule("option-required", required(errorMessages.OPTION_REQUIRED)); @@ -242,7 +243,9 @@ export default { const resultMap = await settleAllPromises(promiseResultMap); const emailFromStore = store.getters.order.customer.emailAddress; const isEmailInStoreOnPageLoad = emailFromStore?.length > 0; - const showSaveProgressPopup = isEmailInStoreOnPageLoad ? false : true; + const isPopupSkipped = + store.getters.pageData(fmgPageValues.QUOTE).saveProgressPopupSkipped === true; + const showSaveProgressPopup = isEmailInStoreOnPageLoad || isPopupSkipped ? false : true; const showSaveProgressModal = isEmailInStoreOnPageLoad ? false : true; const shouldSkipToInsurance = getBoolFromString( @@ -626,6 +629,15 @@ export default { async closeSaveProgressPopup() { this.showSaveProgressPopup = false; + await this.dispatchStoreAction( + storeActions.SAVE_PAGE_DATA, + { + page: fmgPageValues.QUOTE, + data: { saveProgressPopupSkipped: true }, + }, + false + ); + if (this.skipToInsurance) { // skip ahead now if in IGQ skip experiment await this.skip(true, externalParamPackageLabels.GLASS_ONLY); diff --git a/src/store/index.js b/src/store/index.js index 032660c6f..e67db8f1e 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -3202,8 +3202,8 @@ export const actions = { context.commit(storeMutations.UPDATE_CUSTOMER_WAITLIST_REQUESTED, waitListRequested); }, - savePageData(context, emailOrSms) { - context.commit(storeMutations.UPDATE_PAGE_DATA, emailOrSms); + savePageData(context, pageData) { + context.commit(storeMutations.UPDATE_PAGE_DATA, pageData); }, saveVin(context, { isSelectedGlassAvailableForVehicle, vehicleInfo }) {