Merge pull request #2099 from Safelite/Feature/Digital/CSR-2066

CSR-2066
This commit is contained in:
hiteshkumar87 2024-11-12 14:13:20 +05:30 committed by GitHub
commit a5dc5a567f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -106,7 +106,11 @@ export async function getImplicitNavigation(toRoute) {
Used to navigate to the heritage funnel with the correct query string and url.
*/
export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLog }) {
export async function navigateToHeritageFunnel({
shouldSaveSession,
pageNameToLog,
cleanupBeforeNavigateExternalMethod = null,
}) {
const log = getQuerystringParameter(queryStrings.LOG);
if (eval(log)) {
console.log("------------- Navigate to heritage start -----------------");
@ -143,6 +147,8 @@ export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLo
) {
heritageParms["forceEndToEndInsurance"] = true;
}
//Cleanup Before Navigate to External
cleanupBeforeNavigateExternalMethod?.();
// clear the heritage session that may still exist after an order was already submitted
if (window.sessionStorage.getItem("createNewSessionForHeritage") !== null) {

View file

@ -74,10 +74,6 @@ export default {
// Call the "next" function to complete the transition to this page.
next((vm) => {
//Reload page if serve from bfcache.
if (performance.getEntriesByType("navigation")[0].type === "back_forward") {
vm.handlePageShow();
}
vm.setCmsContent(resultMap.cmsContent);
vm.originalList = resultMap.insuranceCompanyList;
if (store.getters.externalParameterState?.isExternalParameter) {
@ -97,9 +93,6 @@ export default {
},
},
methods: {
handlePageShow() {
window.location.reload();
},
isCashParentAccountNumber() {
return (
applicationConfig.CASH_PARENT_ACCOUNT_NUMBER.toString() ===
@ -145,6 +138,7 @@ export default {
navigateToHeritageFunnel({
shouldSaveSession: true,
pageNameToLog: "insurance-company",
cleanupBeforeNavigateExternalMethod: this.$refs.navbar.removeLoader,
});
},
},