CSR-1072 back button for end to end

CSR-1072 back button for end to end should go back to heritage
This commit is contained in:
CarlNation 2024-02-02 15:19:21 -05:00
parent 364e85614b
commit a0acb7ffd4

View file

@ -138,6 +138,7 @@ import {
getServiceabilityDetails,
getShopProviderData,
} from "@/layouts/service-location/helpers/service-location-helper/service-location-helper";
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
import { Provider } from "@/layouts/service-location/classes/provider";
@ -438,7 +439,14 @@ export default {
this.recalibrationInformationModal.openModal();
},
backButtonAction() {
this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);
if (store.getters.order.payment.isInsurance) {
navigateToHeritageFunnel({shouldSaveSession: false});
} else {
this.$router.navigateWithoutSaving(
this.navigationScenarios.CLICKED_BACK,
this.$route
);
}
},
updateAndSaveSupportingItems() {
const supportingItems = store.getters.lineItems.supportingItems;