This commit is contained in:
Kulbhushan Kaushik 2023-01-20 10:14:48 -05:00
parent 3cd39fffda
commit 16322ceb62
4 changed files with 27 additions and 5 deletions

View file

@ -4,7 +4,7 @@
<div class="fade-on-route-transition">
<siteHeader cmsWidgetName="SiteHeaderWidget"/>
<siteSubHeader cmsWidgetName="SiteSubHeaderWidget"/>
<div class="row mb-4">
<div class="row mt-4">
<div class="col">
<textboxQuestion
inputId="firstNameField"
@ -16,7 +16,7 @@
validationRules="first-name-required" />
</div>
</div>
<div class="row mb-4">
<div class="row mt-4">
<div class="col">
<textboxQuestion
inputId="lastNameField"
@ -46,6 +46,7 @@ import siteHeader from '@/common-components/site-header/site-header';
import siteSubHeader from '@/common-components/site-sub-header/site-sub-header';
import textboxQuestion from "@/common-components/textbox-question/textbox-question";
import addressQuestions from "@/common-components/address-questions/address-questions";
import siteFooter from "@/common-components/site-footer/site-footer";
// Supporting files
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
@ -101,11 +102,18 @@ export default {
vm.setCmsContent(resultMap.cmsContent);
});
},
methods:
{
backButtonAction() {
this.$router.navigate(this.navigationScenarios.CLICKED_BACK, this.$route);
},
},
components: {
siteHeader,
siteSubHeader,
textboxQuestion,
addressQuestions,
siteFooter,
Form,
},
}

View file

@ -215,7 +215,7 @@
navigateForward() {
this.$router.navigate(
this.navigationScenarios.WELCOME_PAGE,
this.navigationScenarios.CLICKED_FORWARD_WELCOME_PAGE,
this.$route
);
},

View file

@ -8,7 +8,8 @@ const navigationScenarios = {
SELECTED_MAKE: "SELECTED_MAKE",
SELECTED_MODEL: "SELECTED_MODEL",
SELECTED_STYLE: "SELECTED_STYLE",
WELCOME_PAGE: "WELCOME_PAGE",
CLICKED_FORWARD_WELCOME_PAGE: "CLICKED_FORWARD_WELCOME_PAGE",
CLICKED_FORWARD_POLICY_HOLDER_DETAILS: "CLICKED_FORWARD_POLICY_HOLDER_DETAILS",
// Vin selection
CLICKED_BACK_WITH_VIN: "CLICKED_BACK_WITH_VIN",

View file

@ -301,11 +301,24 @@ const routingTable = function(store) {
destinationIssPageValue: issPageValues.WELCOME_PAGE
},
{
scenario: navigationScenarios.WELCOME_PAGE,
scenario: navigationScenarios.CLICKED_FORWARD_WELCOME_PAGE,
destinationIssPageValue: issPageValues.POLICY_HOLDER_DETAILS
},
],
},
{
issPageValue: issPageValues.POLICY_HOLDER_DETAILS,
maps: [
{
scenario: navigationScenarios.CLICKED_BACK,
destinationIssPageValue: issPageValues.WELCOME_PAGE
},
{
scenario: navigationScenarios.CLICKED_FORWARD_POLICY_HOLDER_DETAILS,
destinationIssPageValue: issPageValues.VEHICLE_YEAR
},
],
},
];
};