From 9accbefb2d20e5ea80a58f5027aeefeba5bab3e3 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Sat, 8 Oct 2016 15:03:52 +0200 Subject: [PATCH] map register page with api --- src/components/Login.vue | 4 +- src/components/Register.vue | 103 ++++++++++++++++++++++---------------------- src/store.js | 2 +- 3 files changed, 55 insertions(+), 54 deletions(-) diff --git a/src/components/Login.vue b/src/components/Login.vue index de3e3a1..938bbea 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -104,7 +104,7 @@ setTimeout(() => { this.showError = false; this.errorMessage = ''; - }, 3000); + }, 4000); }, login(){ var baseURL = this.baseURL; @@ -130,7 +130,7 @@ } else if (err.response.status === 400) { this.showErrorMessage('Your login or password is not good. Do you have an account ?'); } else { - this.showErrorMessage('An error appears, Sorry for the inconvenience.') + this.showErrorMessage('Oops! Something went wrong. Retry in a few minutes.') } }); } diff --git a/src/components/Register.vue b/src/components/Register.vue index 70b5b00..35612af 100644 --- a/src/components/Register.vue +++ b/src/components/Register.vue @@ -2,41 +2,24 @@ .card-block { position: relative; } - - .alert { - position: absolute; - z-index: 20; - width: 100%; - top: 0; - left: 0; - } - - .fade-enter-active, .fade-leave-active { - transition: opacity .5s - } - - .fade-enter, .fade-leave-active { - opacity: 0 - }