Merge branch 'develop' into feature/Digital/SSR-429

This commit is contained in:
Jethe 2023-04-24 19:16:03 +05:30
commit 1d1d6fb0ce
7 changed files with 45 additions and 24 deletions

View file

@ -9,7 +9,7 @@
cmsWidgetName="SiteFooterWidget"
ref="siteFooter"
:isForwardActionDisabled="!meta.valid"
@ForwardClicked="forwardButtonAction"
@ForwardClicked="navigateForward"
@back-clicked="backButtonAction"
/>
</div>
@ -68,6 +68,10 @@ export default {
},
navigateForward() {
this.$router.navigate(
this.navigationScenarios.CLICKED_FORWARD,
this.$route
);
},
},
components: {

View file

@ -1,10 +1,13 @@
<template>
<Form @submit="onSubmit" @invalid-submit="onInvalidSubmit" ref="theForm" v-slot="{ meta }" >
<Form @submit="onSubmit"
@invalid-submit="onInvalidSubmit"
ref="theForm"
v-slot="{ meta }" >
<div class="page-container-grouped-styles">
<div class="fade-on-route-transition position-relative">
<siteHeader cmsWidgetName="SiteHeaderWidget" />
<siteSubHeader cmsWidgetName="SiteSubHeader" id="sub-header" />
<button v-on:click="forwardButtonAction">Temp Forward Button</button>
<div>
<siteFooter
cmsWidgetName="SiteFooterWidget"
@ -124,10 +127,12 @@ export default {
this.$router.navigate(this.navigationScenarios.CLICKED_BACK, this.$route);
},
forwardButtonAction() {
if(this.SelectedshopLocation == "Schedule with Safelite")
{
this.$router.navigate(this.navigationScenarios.CLICKED_FORWARD_WITH_SAFELITE, this.$route);
}
//todo
this.$router.navigate(this.navigationScenarios.CLICKED_FORWARD_WITH_SAFELITE, this.$route);
//if(this.SelectedshopLocation == "Schedule with Safelite")
//{
// this.$router.navigate(this.navigationScenarios.CLICKED_FORWARD_WITH_SAFELITE, this.$route);
//}
},
closeSteeringModal() {
this.$refs["SteeringModal"].closeModal();

View file

@ -9,7 +9,7 @@
cmsWidgetName="SiteFooterWidget"
ref="siteFooter"
:isForwardActionDisabled="!meta.valid"
@ForwardClicked="forwardButtonAction"
@ForwardClicked="navigateForward"
@back-clicked="backButtonAction"
/>
</div>
@ -57,14 +57,11 @@ export default {
backButtonAction() {
this.$router.navigate(this.navigationScenarios.CLICKED_BACK, this.$route);
},
async forwardButtonAction() {
return this.navigateForward();
},
forwardButtonAction() {
},
navigateForward() {
this.$router.navigate(
this.navigationScenarios.CLICKED_FORWARD_WITH_REVIEW,
this.navigationScenarios.CLICKED_FORWARD,
this.$route
);
},

View file

@ -65,6 +65,8 @@ export default {
},
forwardButtonAction() {
//validate and save here
this.$router.navigate(this.navigationScenarios.CLICKED_FORWARD, this.$route);
},
navigateForward() {

View file

@ -150,7 +150,10 @@ export default {
*/
this.$router.navigate(this.navigationScenarios.CLICKED_BACK, this.$route);
},
async forwardButtonAction() {},
async forwardButtonAction() {
//validate and save data here
this.$router.navigate(this.navigationScenarios.CLICKED_FORWARD, this.$route);
},
resetDependentState() {},
},
components: {

View file

@ -5,18 +5,20 @@ export const issPageValues = {
ADDRESS_LOOKUP: 'address-lookup',
ADDRESS_VEHICLES: 'address-vehicles',
CAPABILITY_QUESTIONS: 'capability-questions',
CONTACT_DETAILS: 'contact-details',
ESTIMATE: 'estimate',
COVERAGE_STATEMENT: 'coverage-statement',
LICENSE_PLATE_LOOKUP: 'license-plate-lookup',
MOLDING_QUESTIONS: 'molding-questions',
PAYMENT_PAGE: 'payment-page',
PART_QUESTIONS: 'part-questions',
POLICY_HOLDER_DETAILS: 'policy-holder-details',
PROVIDER_PREFERENCE: 'provider-preference',
REVIEW_PAGE: 'review-page',
REVEAL: 'reveal',
REVIEW_ORDER: 'review-order',
SERVICE_LOCATION: 'service-location',
SERVICE_PACKAGE: 'service-package',
SERVICE_PACKAGES: 'service-packages',
SCHEDULE_PAGE: 'schedule-page',
VEHICLE_DAMAGE: 'vehicle-damage',
VEHICLE_LOOKUP: 'vehicle-lookup',
VEHICLE_MAKE: 'vehicle-make',

View file

@ -435,7 +435,7 @@ const routingTable = function(store) {
},
{
scenario: navigationScenarios.CLICKED_FORWARD_WITH_SAFELITE,
destinationIssPageValue: issPageValues.SERVICE_LOCATION
destinationIssPageValue: issPageValues.SERVICE_PACKAGES
}
]
},
@ -444,11 +444,11 @@ const routingTable = function(store) {
maps: [
{
scenario: navigationScenarios.CLICKED_BACK,
destinationIssPageValue: issPageValues.PROVIDER_PREFERENCE,
destinationIssPageValue: issPageValues.SERVICE_PACKAGES,
},
{
scenario: navigationScenarios.CLICKED_FORWARD,
destinationIssPageValue: issPageValues.SERVICE_PACKAGES
destinationIssPageValue: issPageValues.SCHEDULE_PAGE
}
]
},
@ -458,6 +458,10 @@ const routingTable = function(store) {
{
scenario: navigationScenarios.CLICKED_BACK,
destinationIssPageValue: issPageValues.SERVICE_LOCATION
},
{
scenario: navigationScenarios.CLICKED_FORWARD,
destinationIssPageValue: issPageValues.CONTACT_DETAILS
}
]
},
@ -467,11 +471,15 @@ const routingTable = function(store) {
{
scenario: navigationScenarios.CLICKED_BACK,
destinationIssPageValue: issPageValues.SCHEDULE_PAGE
},
{
scenario: navigationScenarios.CLICKED_FORWARD,
destinationIssPageValue: issPageValues.REVIEW_PAGE
}
]
},
{
issPageValue: issPageValues.SERVICE_PACKAGE,
issPageValue: issPageValues.SERVICE_PACKAGES,
maps: [
{
scenario: navigationScenarios.CLICKED_BACK,
@ -479,7 +487,7 @@ const routingTable = function(store) {
},
{
scenario: navigationScenarios.CLICKED_FORWARD,
destinationIssPageValue: issPageValues.REVIEW_ORDER
destinationIssPageValue: issPageValues.PROVIDER_PREFERENCE
}
]
},
@ -489,10 +497,10 @@ const routingTable = function(store) {
maps: [
{
scenario: navigationScenarios.CLICKED_BACK,
destinationIssPageValue: issPageValues.SERVICE_PACKAGE,
destinationIssPageValue: issPageValues.CONTACT_DETAILS,
},
{
scenario: navigationScenarios.CLICKED_FORWARD_WITH_REVIEW,
scenario: navigationScenarios.CLICKED_FORWARD,
destinationIssPageValue: issPageValues.PAYMENT_PAGE,
},