From f28b9625aa06ee68a5956ccad5d72b4f9046627c Mon Sep 17 00:00:00 2001 From: Jethe Date: Wed, 26 Apr 2023 10:57:47 +0530 Subject: [PATCH 1/3] Added TPA Search page SSR-416 --- src/layouts/tpa-search/tpa-search.vue | 78 +++++++++++++++++++ src/router/router-constants/issPage-values.js | 1 + src/router/router-constants/routing-table.js | 13 ++++ 3 files changed, 92 insertions(+) create mode 100644 src/layouts/tpa-search/tpa-search.vue diff --git a/src/layouts/tpa-search/tpa-search.vue b/src/layouts/tpa-search/tpa-search.vue new file mode 100644 index 00000000..4bbd0fba --- /dev/null +++ b/src/layouts/tpa-search/tpa-search.vue @@ -0,0 +1,78 @@ + + + \ 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..66e82635 100644 --- a/src/router/router-constants/issPage-values.js +++ b/src/router/router-constants/issPage-values.js @@ -30,5 +30,6 @@ export const issPageValues = { VIN_LOOKUP: 'vin-lookup', TPA_SUBMIT: 'tpa-submit', BAILOUT_PAGE: 'bailout-page', + TPA_SEARCH: 'tpa-search' }; \ No newline at end of file diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js index 1376ed00..6424ca64 100644 --- a/src/router/router-constants/routing-table.js +++ b/src/router/router-constants/routing-table.js @@ -545,6 +545,19 @@ const routingTable = function(store) { destinationIssPageValue: issPageValues.TPA_CONFIRMATION, }, ] + }, + { + issPageValue: issPageValues.TPA_SEARCH, + maps: [ + { + scenario: navigationScenarios.CLICKED_BACK, + destinationIssPageValue: issPageValues.PROVIDER_PREFERENCE + }, + { + scenario: navigationScenarios.CLICKED_FORWARD, + destinationIssPageValue: issPageValues.TPA_SUBMIT, + }, + ] } ]; }; From 06d642e980d107170422c48ca74580df1be00f62 Mon Sep 17 00:00:00 2001 From: Jethe Date: Wed, 26 Apr 2023 12:30:26 +0530 Subject: [PATCH 2/3] Update tpa-search.vue --- src/layouts/tpa-search/tpa-search.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/layouts/tpa-search/tpa-search.vue b/src/layouts/tpa-search/tpa-search.vue index 4bbd0fba..20f579f1 100644 --- a/src/layouts/tpa-search/tpa-search.vue +++ b/src/layouts/tpa-search/tpa-search.vue @@ -73,6 +73,4 @@ export default { Form, }, } - - \ No newline at end of file + \ No newline at end of file From 051bdad4dd0b26cfc0484106c48a47ddcce434c2 Mon Sep 17 00:00:00 2001 From: Jethe Date: Wed, 26 Apr 2023 12:33:10 +0530 Subject: [PATCH 3/3] Update tpa-search.vue --- src/layouts/tpa-search/tpa-search.vue | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/layouts/tpa-search/tpa-search.vue b/src/layouts/tpa-search/tpa-search.vue index 20f579f1..f3bb24f5 100644 --- a/src/layouts/tpa-search/tpa-search.vue +++ b/src/layouts/tpa-search/tpa-search.vue @@ -26,16 +26,11 @@ 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: "tpa-search", mixins: [BaseFormMixin], data() { }, - setup() { - const mainStore = useMainStore(); - return { mainStore }; - }, async beforeRouteEnter(to, from, next) { // Call APIs