diff --git a/src/constants/application-config.js b/src/constants/application-config.js
index a2fd49e9..e0ae8df6 100644
--- a/src/constants/application-config.js
+++ b/src/constants/application-config.js
@@ -8,6 +8,7 @@ const applicationConfig = {
SITE_ENTRY_TRIGGER_VALUE: "SelfService",
APPLICATION_ABBREVIATION: "iss",
PAGE_QUERYSTRING: 'issPage',
+ CLIENTTAG_QUERYSTRING: 'CientTag',
GOOGLE_PLACES_API_KEY: process.env.VUE_APP_GOOGLE_PLACES_API_KEY,
ISS_DEV_CMS_DOMAIN: "https://digitalisscms.dev.safelite.io",
};
diff --git a/src/helpers/clientauth-helper.js b/src/helpers/clientauth-helper.js
index ce26cf62..4acb92c5 100644
--- a/src/helpers/clientauth-helper.js
+++ b/src/helpers/clientauth-helper.js
@@ -4,17 +4,17 @@ export function validateISSClientTag(clientTag) {
const store = useMainStore()
const clientName = store.issConfig.clientName;
- store.validateClientTag(clientTag)
- .then(
- (response) => {
- // Success
- console.log(response);
- },
- (error) => {
- // Error
- console.log("error: " + error);
- }
- );
-
- return true;
-};
+ return store.validateClientTag(clientTag)
+ .then(
+ (response) => {
+ // Success
+ //console.log(response);
+ return response;
+ },
+ (error) => {
+ // Error
+ console.log("error: " + error);
+ return null;
+ }
+ );
+}
diff --git a/src/layouts/entry-page/entry-page.vue b/src/layouts/entry-page/entry-page.vue
new file mode 100644
index 00000000..920ce986
--- /dev/null
+++ b/src/layouts/entry-page/entry-page.vue
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+
diff --git a/src/layouts/welcome-page/welcome-page.vue b/src/layouts/welcome-page/welcome-page.vue
index a881098b..6fc8b75e 100644
--- a/src/layouts/welcome-page/welcome-page.vue
+++ b/src/layouts/welcome-page/welcome-page.vue
@@ -186,7 +186,8 @@
setup() {
const mainStore = useMainStore();
- const resp = validateISSClientTag("asdf");
+ console.log(mainStore.issConfig.clientName);
+
return { mainStore };
},
async beforeRouteEnter(to, from, next)
diff --git a/src/router/router-constants/issPage-values.js b/src/router/router-constants/issPage-values.js
index 5f77dd6d..eb882ecc 100644
--- a/src/router/router-constants/issPage-values.js
+++ b/src/router/router-constants/issPage-values.js
@@ -1,4 +1,5 @@
export const issPageValues = {
+ ENTRY_PAGE: "entry-page",
WELCOME_PAGE: "welcome-page",
POLICY_HOLDER_DETAILS: "policy-holder-details",
VEHICLE_MAKE: "vehicle-make",
diff --git a/src/router/router-constants/navigation-scenarios.js b/src/router/router-constants/navigation-scenarios.js
index da815f1f..38601f9d 100644
--- a/src/router/router-constants/navigation-scenarios.js
+++ b/src/router/router-constants/navigation-scenarios.js
@@ -3,6 +3,9 @@ const navigationScenarios = {
CLICKED_BACK: "CLICKED_BACK",
CLICKED_FORWARD: "CLICKED_FORWARD",
+ // Entry
+ MOVE_FORWARD_ENTRY_PAGE: "MOVE_FORWARD_ENTRY_PAGE",
+
// YMMS
SELECTED_YEAR: "SELECTED_YEAR",
SELECTED_MAKE: "SELECTED_MAKE",
diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js
index 78dbb55a..95b1d2a3 100644
--- a/src/router/router-constants/routing-table.js
+++ b/src/router/router-constants/routing-table.js
@@ -354,6 +354,19 @@ const routingTable = function(store) {
},
],
},
+ {
+ issPageValue: issPageValues.ENTRY_PAGE,
+ maps: [
+ {
+ scenario: navigationScenarios.CLICKED_BACK,
+ destinationIssPageValue: issPageValues.ENTRY_PAGE
+ },
+ {
+ scenario: navigationScenarios.MOVE_FORWARD_ENTRY_PAGE,
+ destinationIssPageValue: issPageValues.WELCOME_PAGE
+ },
+ ],
+ },
{
issPageValue: issPageValues.WELCOME_PAGE,
maps: [