diff --git a/src/common-components/loading-modal/loading-modal.vue b/src/common-components/loading-modal/loading-modal.vue index c24e1f86f..c86367e3a 100644 --- a/src/common-components/loading-modal/loading-modal.vue +++ b/src/common-components/loading-modal/loading-modal.vue @@ -1,91 +1,115 @@ diff --git a/src/router/index.js b/src/router/index.js index 397802063..c8d614d48 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -21,6 +21,7 @@ import analyticsMixin from "@/mixins/analytics-mixin"; // Components import ComponentTest from "@/layouts/component-test/component-test.vue"; import FormTest from "@/layouts/form-test/form-test.vue"; +import Modal from "@/common-components/loading-modal/loading-modal.vue"; const routes = [ @@ -34,6 +35,11 @@ const routes = [ name: "FormTest", component: FormTest, }, + { + path: "/loading-modal", // This is a temporary route for testing. + name: "Modal", + component: Modal, + }, { path: "/", name: "root", @@ -126,7 +132,7 @@ const router = createRouter({ router.afterEach(async (to, from) => { // Push page view to GA analyticsMixin.methods.pushPageViewToGA(to.query[queryStrings.FMG_PAGE]); - + baseMixin.methods.dispatchStoreAction(storeActions.GET_EXPERIMENTS_BY_USER, { userId: getDeviceIdValue() }) .then( (response) => { analyticsMixin.methods.pushExperimentsToDataLayer(response.data); @@ -271,4 +277,4 @@ function resetDependentState(component) { return component.default.methods.resetDependentState(); } -export default router; \ No newline at end of file +export default router;