diff --git a/frontend/src/routes/routes.js b/frontend/src/routes/routes.js index 1ce4875a1..15de73163 100755 --- a/frontend/src/routes/routes.js +++ b/frontend/src/routes/routes.js @@ -17,9 +17,9 @@ const routes = [ component: () => import(/* webpackChunkName: "demo" */ '../views/Pages/Login.vue') }, { - path: '/Landing', - name: 'Landing', - component: () => import(/* webpackChunkName: "demo" */ '../views/Landing.vue') + path: '/thx', + name: 'Thanks', + component: () => import(/* webpackChunkName: "demo" */ '../views/thx.vue') }, { path: '/register', diff --git a/frontend/src/store/store.js b/frontend/src/store/store.js index 995727987..21ac4635e 100644 --- a/frontend/src/store/store.js +++ b/frontend/src/store/store.js @@ -21,7 +21,8 @@ export const store = new Vuex.Store({ target_date:"2021-02-19T13:25:36+00:00", memo:"AGE", auto_sign: true - } + }, + modals: false }, // Retrieve a state variable getters: { @@ -61,6 +62,7 @@ export const store = new Vuex.Store({ }, createUser: async ({ dispatch }, data) => { console.log('action: createUser') + console.log('data ', data) const result = await loginAPI.create(data.email,data.first_name,data.last_name,data.password) if( result.success ){ // TODO We are not logged in, we need to do that manually. diff --git a/frontend/src/views/Pages/Register.vue b/frontend/src/views/Pages/Register.vue index d0b55530a..384c2bc78 100755 --- a/frontend/src/views/Pages/Register.vue +++ b/frontend/src/views/Pages/Register.vue @@ -92,11 +92,10 @@
- Launch demo modal - - -

...

-
+ + + +
@@ -112,15 +111,26 @@ lastname: '', email: '', password: '', - agree: false - } + agree: false + }, + modals: false } }, + created() { + console.log("this.modals =>", this.modals) + }, methods: { onSubmit() { - this.$store.dispatch('creatUser', {"email":this.model.email, "first_name":this.model.firstname, "last_name":this.model.lastname , "emailType": 2, "password":this.model.password}) - - } + console.log("this.modals =>", this.modals) + //this.$store.dispatch('createUser', {"email":this.model.email, "first_name":this.model.firstname, "last_name":this.model.lastname , "emailType": 2, "password":this.model.password}) + this.$notify({type: 'danger', message: 'Danger Notification'}) + this.model.email = "" + this.model.firstname = "" + this.model.lastname = "" + this.model.password = "" + this.$router.push('/thx') + + } } }; diff --git a/frontend/src/views/thx.vue b/frontend/src/views/thx.vue new file mode 100644 index 000000000..78f4701b1 --- /dev/null +++ b/frontend/src/views/thx.vue @@ -0,0 +1,23 @@ +