From 96c519e32e3636ac8e3ec52778d275a3497e6c1c Mon Sep 17 00:00:00 2001 From: Reddy Date: Wed, 26 Apr 2023 10:49:10 +0530 Subject: [PATCH 1/2] SSR-427 Front end for order confirmation page --- .../order-confirmation/order-confirmation.vue | 77 +++++++++++++++++++ src/router/router-constants/issPage-values.js | 1 + src/router/router-constants/routing-table.js | 15 +++- 3 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 src/layouts/order-confirmation/order-confirmation.vue diff --git a/src/layouts/order-confirmation/order-confirmation.vue b/src/layouts/order-confirmation/order-confirmation.vue new file mode 100644 index 00000000..c1685696 --- /dev/null +++ b/src/layouts/order-confirmation/order-confirmation.vue @@ -0,0 +1,77 @@ + + + \ No newline at end of file diff --git a/src/router/router-constants/issPage-values.js b/src/router/router-constants/issPage-values.js index 70da2a0e..6f8877bf 100644 --- a/src/router/router-constants/issPage-values.js +++ b/src/router/router-constants/issPage-values.js @@ -10,6 +10,7 @@ export const issPageValues = { COVERAGE_STATEMENT: 'coverage-statement', LICENSE_PLATE_LOOKUP: 'license-plate-lookup', MOLDING_QUESTIONS: 'molding-questions', + ORDER_CONFIRMATION: 'order-confirmation', PAYMENT_PAGE: 'payment-page', PART_QUESTIONS: 'part-questions', POLICY_HOLDER_DETAILS: 'policy-holder-details', diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js index 1376ed00..fe335080 100644 --- a/src/router/router-constants/routing-table.js +++ b/src/router/router-constants/routing-table.js @@ -516,7 +516,7 @@ const routingTable = function(store) { }, { scenario: navigationScenarios.CLICKED_FORWARD, - destinationIssPageValue: issPageValues.WELCOME_PAGE + destinationIssPageValue: issPageValues.ORDER_CONFIRMATION, } ] }, @@ -545,7 +545,18 @@ const routingTable = function(store) { destinationIssPageValue: issPageValues.TPA_CONFIRMATION, }, ] - } + }, + { + issPageValue: issPageValues.ORDER_CONFIRMATION, + maps: [ + + { + scenario: navigationScenarios.CLICKED_FORWARD, + destinationIssPageValue: issPageValues.WELCOME_PAGE + }, + + ], + }, ]; }; From ed4e772575c0dc81f7c76893ef1f636060de8121 Mon Sep 17 00:00:00 2001 From: Reddy Date: Wed, 26 Apr 2023 14:06:21 +0530 Subject: [PATCH 2/2] Update order-confirmation.vue Added the changes --- .../order-confirmation/order-confirmation.vue | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/layouts/order-confirmation/order-confirmation.vue b/src/layouts/order-confirmation/order-confirmation.vue index c1685696..2cdbc680 100644 --- a/src/layouts/order-confirmation/order-confirmation.vue +++ b/src/layouts/order-confirmation/order-confirmation.vue @@ -9,7 +9,7 @@ cmsWidgetName="SiteFooterWidget" ref="siteFooter" :isForwardActionDisabled="!meta.valid" - @ForwardClicked="navigateForward" + @ForwardClicked="forwardButtonAction" @back-clicked="backButtonAction" /> @@ -26,16 +26,9 @@ import { fetchCmsContentForPage } from "@/helpers/cms-content-helper"; import { settleAllPromises } from "@/helpers/layout-helper"; import { Form } from "vee-validate"; import BaseFormMixin from '@/mixins/base-form-mixin.js'; -import { useMainStore } from '@/store'; export default { name: "order-confirmation", - mixins: [BaseFormMixin], - data() { - }, - setup() { - const mainStore = useMainStore(); - return { mainStore }; - }, + mixins: [BaseFormMixin], async beforeRouteEnter(to, from, next) { // Call APIs @@ -58,6 +51,7 @@ export default { this.$router.navigate(this.navigationScenarios.CLICKED_BACK, this.$route); }, forwardButtonAction() { + return this.navigateForward(); }, navigateForward() { this.$router.navigate( @@ -73,5 +67,3 @@ export default { }, } - \ No newline at end of file