From 307bb38b568255bd054f61888fbc8f31bf76098c Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Mon, 10 Oct 2016 11:01:24 +0200 Subject: [PATCH] remove go method in store --- src/components/ForgotPassword.vue | 84 ++++++++++++----------------- src/components/Login.vue | 14 ++--- src/components/Menu.vue | 37 +++++++------ src/components/Passwords.vue | 54 ++++++++----------- src/components/Register.vue | 110 ++++++++++++++++---------------------- src/routes.js | 2 +- src/store.js | 7 --- 7 files changed, 129 insertions(+), 179 deletions(-) diff --git a/src/components/ForgotPassword.vue b/src/components/ForgotPassword.vue index d65d5b6..5977b68 100644 --- a/src/components/ForgotPassword.vue +++ b/src/components/ForgotPassword.vue @@ -4,59 +4,41 @@ } diff --git a/src/components/Login.vue b/src/components/Login.vue index 71db5da..a6b711d 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -47,15 +47,17 @@ - +
- +
+ + Forgot you password ? + +
@@ -105,7 +107,7 @@ this.storage.save({baseURL: baseURL, email: email}); this.$store.dispatch('userAuthenticated', {email: email}); this.$store.dispatch('loadPasswords'); - this.$router.push({ name: 'home'}); + this.$router.push({name: 'home'}); }) .catch(err => { if (err.response === undefined) { diff --git a/src/components/Menu.vue b/src/components/Menu.vue index b430e05..be3e9da 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -6,20 +6,29 @@ } .menu-link { - color: white; + color: #373a3c; + text-decoration: none; } .menu-link:hover, .menu-link:focus, .menu-link:active { + color: #373a3c; + } + + .menu-link-white { + color: white; + } + + .menu-link-white:hover, .menu-link-white:focus, .menu-link-white:active { text-decoration: none; color: white; }