Merge pull request #3213 from Safelite/nation/CASH-940
CASH-940 added save progress modal
This commit is contained in:
commit
af1cd602a3
1 changed files with 14 additions and 0 deletions
|
|
@ -112,6 +112,14 @@
|
||||||
maxLength="5"
|
maxLength="5"
|
||||||
validationRules="zip-code-required|zip-code-format" />
|
validationRules="zip-code-required|zip-code-format" />
|
||||||
|
|
||||||
|
<hr class="mb-5" />
|
||||||
|
|
||||||
|
<saveProgressModalQuestion
|
||||||
|
modalWidgetName="SaveProgressModalWidget"
|
||||||
|
modalName="SaveProgressModal"
|
||||||
|
v-if="showSaveProgressModal"
|
||||||
|
pageName="insurance-details" />
|
||||||
|
|
||||||
<navbar
|
<navbar
|
||||||
cmsWidgetName="FunnelFooterWidget"
|
cmsWidgetName="FunnelFooterWidget"
|
||||||
ref="navbar"
|
ref="navbar"
|
||||||
|
|
@ -141,6 +149,7 @@ import { settleAllPromises } from "@/helpers/layout-helper";
|
||||||
import { stateOptions } from "@/constants/state-options";
|
import { stateOptions } from "@/constants/state-options";
|
||||||
import { regex } from "@/helpers/validation-rules";
|
import { regex } from "@/helpers/validation-rules";
|
||||||
import { NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS } from "@/constants/insurance";
|
import { NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS } from "@/constants/insurance";
|
||||||
|
import saveProgressModalQuestion from "@/fmg-components/save-progress-modal-question/save-progress-modal-question";
|
||||||
|
|
||||||
// DEFINE VALIDATION RULES
|
// DEFINE VALIDATION RULES
|
||||||
defineRule(
|
defineRule(
|
||||||
|
|
@ -171,6 +180,7 @@ export default {
|
||||||
policyState: this.getPolicyStateFromStore(),
|
policyState: this.getPolicyStateFromStore(),
|
||||||
policyZip: this.getPolicyZipFromStore(),
|
policyZip: this.getPolicyZipFromStore(),
|
||||||
claimNumber: this.getClaimNumberFromStore(),
|
claimNumber: this.getClaimNumberFromStore(),
|
||||||
|
showSaveProgressModal: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -182,6 +192,7 @@ export default {
|
||||||
datePickerPopup,
|
datePickerPopup,
|
||||||
dropdownQuestion,
|
dropdownQuestion,
|
||||||
textBlock,
|
textBlock,
|
||||||
|
saveProgressModalQuestion,
|
||||||
},
|
},
|
||||||
// Ensure CMS content is fetched during route navigation without depending on `to`/`from`
|
// Ensure CMS content is fetched during route navigation without depending on `to`/`from`
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
|
|
@ -194,8 +205,11 @@ export default {
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
const resultMap = await settleAllPromises(promiseResultMap);
|
const resultMap = await settleAllPromises(promiseResultMap);
|
||||||
|
const emailFromStore = store.getters.order.customer.emailAddress;
|
||||||
|
const showSaveProgressModal = !(emailFromStore?.length > 0);
|
||||||
next((vm) => {
|
next((vm) => {
|
||||||
vm.setCmsContent(resultMap.cmsContent);
|
vm.setCmsContent(resultMap.cmsContent);
|
||||||
|
vm.showSaveProgressModal = showSaveProgressModal;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue