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:
parent
364e85614b
commit
a0acb7ffd4
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue