Merge branch 'develop' into feature/CSR-2294
This commit is contained in:
commit
8e623285f7
2 changed files with 9 additions and 11 deletions
|
|
@ -46,19 +46,10 @@ import baseMixin from "@/mixins/base-mixin.js";
|
||||||
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
|
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
|
||||||
import { applicationConfig } from "@/constants/application-config";
|
import { applicationConfig } from "@/constants/application-config";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
import router from "@/router";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "insurance-company",
|
name: "insurance-company",
|
||||||
async beforeRouteEnter(to, from, next) {
|
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
|
// Call APIs
|
||||||
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
||||||
const insuranceCompanyListPromise = baseMixin.methods.dispatchStoreActionWithLogging(
|
const insuranceCompanyListPromise = baseMixin.methods.dispatchStoreActionWithLogging(
|
||||||
|
|
@ -83,6 +74,10 @@ export default {
|
||||||
|
|
||||||
// Call the "next" function to complete the transition to this page.
|
// Call the "next" function to complete the transition to this page.
|
||||||
next((vm) => {
|
next((vm) => {
|
||||||
|
//Reload page if serve from bfcache.
|
||||||
|
if (performance.getEntriesByType("navigation")[0].type === "back_forward") {
|
||||||
|
vm.handlePageShow();
|
||||||
|
}
|
||||||
vm.setCmsContent(resultMap.cmsContent);
|
vm.setCmsContent(resultMap.cmsContent);
|
||||||
vm.originalList = resultMap.insuranceCompanyList;
|
vm.originalList = resultMap.insuranceCompanyList;
|
||||||
if (store.getters.externalParameterState?.isExternalParameter) {
|
if (store.getters.externalParameterState?.isExternalParameter) {
|
||||||
|
|
@ -102,6 +97,9 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handlePageShow() {
|
||||||
|
window.location.reload();
|
||||||
|
},
|
||||||
isCashParentAccountNumber() {
|
isCashParentAccountNumber() {
|
||||||
return (
|
return (
|
||||||
applicationConfig.CASH_PARENT_ACCOUNT_NUMBER.toString() ===
|
applicationConfig.CASH_PARENT_ACCOUNT_NUMBER.toString() ===
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@
|
||||||
alertClass="alert-info" />
|
alertClass="alert-info" />
|
||||||
|
|
||||||
<promoModalQuestion
|
<promoModalQuestion
|
||||||
class="small mt-6 d-md-flex justify-content-md-center"
|
class="small mt-6 d-flex justify-content-center"
|
||||||
v-model="lineItems"
|
v-model="lineItems"
|
||||||
:addableVaps="addableVaps"
|
:addableVaps="addableVaps"
|
||||||
pageName="quote"
|
pageName="quote"
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
|
|
||||||
<textBlock
|
<textBlock
|
||||||
cmsWidgetName="quoteDisclaimer"
|
cmsWidgetName="quoteDisclaimer"
|
||||||
justifyText="left"
|
justifyText="center"
|
||||||
typeStyle="caption"
|
typeStyle="caption"
|
||||||
class="mt-6 quote-disclaimer" />
|
class="mt-6 quote-disclaimer" />
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue