From ffe64e722a7e12e70aa2724082e28e56d25c884c Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Sun, 9 Oct 2016 20:12:17 +0200 Subject: [PATCH] fix errors with buttons in login page --- src/components/ForgotPassword.vue | 12 +++++----- src/components/Login.vue | 48 ++++++++++++++++----------------------- src/components/Register.vue | 12 +++++----- 3 files changed, 31 insertions(+), 41 deletions(-) diff --git a/src/components/ForgotPassword.vue b/src/components/ForgotPassword.vue index 5ad22b6..d65d5b6 100644 --- a/src/components/ForgotPassword.vue +++ b/src/components/ForgotPassword.vue @@ -9,7 +9,7 @@
-
+
Oops! Something went wrong. Retry in a few minutes.
@@ -72,18 +72,18 @@ storage, email: '', emailRequired: false, - errorMessage: false, + showError: false, successMessage: false, }; }, methods: Object.assign(mapActions(['go']), { cleanErrors(){ this.emailRequired = false; - this.errorMessage = false; + this.showError = false; this.successMessage = false; }, noErrors(){ - return !(this.emailRequired || this.errorMessage); + return !(this.emailRequired || this.showError); }, forgotPassword(){ this.cleanErrors(); @@ -94,7 +94,7 @@ this.auth.resetPassword({email: this.email}).then(()=> { this.successMessage = true }).catch(err => { - this.errorMessage = true; + this.showError = true; }); } }) diff --git a/src/components/Login.vue b/src/components/Login.vue index d45b23b..54d5c7c 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -10,14 +10,6 @@ top: 0; left: 0; } - - .fade-enter-active, .fade-leave-active { - transition: opacity .5s - } - - .fade-enter, .fade-leave-active { - opacity: 0 - }