From bdae7a7f2c0c7a6441289a9d49ef4273704c676c Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Wed, 30 Oct 2024 20:07:03 +0530 Subject: [PATCH 1/3] CSR-2066 Reload page if serve from bfcache. --- .../insurance-company/insurance-company.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/layouts/insurance-company/insurance-company.vue b/src/layouts/insurance-company/insurance-company.vue index bc5034c67..3791359e5 100644 --- a/src/layouts/insurance-company/insurance-company.vue +++ b/src/layouts/insurance-company/insurance-company.vue @@ -46,19 +46,10 @@ import baseMixin from "@/mixins/base-mixin.js"; import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper"; import { applicationConfig } from "@/constants/application-config"; import store from "@/store"; -import router from "@/router"; export default { name: "insurance-company", async beforeRouteEnter(to, from, next) { - //force reload if redirected from external application - if (from.redirectedFrom === undefined && !sessionStorage.getItem("reloaded")) { - sessionStorage.setItem("reloaded", "true"); - router.go(0); - } else { - sessionStorage.removeItem("reloaded"); - } - // Call APIs const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage); const insuranceCompanyListPromise = baseMixin.methods.dispatchStoreActionWithLogging( @@ -83,6 +74,10 @@ 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) { @@ -102,6 +97,9 @@ export default { }, }, methods: { + handlePageShow() { + window.location.reload(); + }, isCashParentAccountNumber() { return ( applicationConfig.CASH_PARENT_ACCOUNT_NUMBER.toString() === From d6448c63c954a34297d7b8adc744bc7e07e0ea57 Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Wed, 30 Oct 2024 20:10:47 +0530 Subject: [PATCH 2/3] CSR-2066 formatting --- src/layouts/insurance-company/insurance-company.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/insurance-company/insurance-company.vue b/src/layouts/insurance-company/insurance-company.vue index 9820eec12..a13755ea0 100644 --- a/src/layouts/insurance-company/insurance-company.vue +++ b/src/layouts/insurance-company/insurance-company.vue @@ -75,9 +75,9 @@ 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") { + if (performance.getEntriesByType("navigation")[0].type === "back_forward") { vm.handlePageShow(); - } + } vm.setCmsContent(resultMap.cmsContent); vm.originalList = resultMap.insuranceCompanyList; if (store.getters.externalParameterState?.isExternalParameter) { From a7c4d47adcb4d1781ff950d3d3354efe4b08e4c3 Mon Sep 17 00:00:00 2001 From: Bryan Mauger Date: Wed, 30 Oct 2024 12:23:27 -0400 Subject: [PATCH 3/3] CSR-2287 fix copy alignment. --- src/layouts/quote/quote.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 3bd9e26eb..77586cc7a 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -59,7 +59,7 @@ alertClass="alert-info" />