From d5d869c73838a11075a2351b126f9235b6e19e75 Mon Sep 17 00:00:00 2001 From: vincent Date: Fri, 10 May 2019 13:55:36 +0200 Subject: [PATCH] add modal windows revues struct login --- client/src/components/chainetv.vue | 16 ++++-- client/src/components/modal.vue | 16 ++++++ client/src/components/modalLogin.vue | 77 +++++++++++++--------------- client/src/router/index.js | 2 +- 4 files changed, 66 insertions(+), 45 deletions(-) create mode 100644 client/src/components/modal.vue diff --git a/client/src/components/chainetv.vue b/client/src/components/chainetv.vue index 5ac4e4d..5565507 100644 --- a/client/src/components/chainetv.vue +++ b/client/src/components/chainetv.vue @@ -74,28 +74,34 @@ + {{modalmessage}} + diff --git a/client/src/components/modalLogin.vue b/client/src/components/modalLogin.vue index 0d7bd7a..762b291 100644 --- a/client/src/components/modalLogin.vue +++ b/client/src/components/modalLogin.vue @@ -2,77 +2,74 @@ diff --git a/client/src/router/index.js b/client/src/router/index.js index 88b290b..419f6b8 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -18,7 +18,7 @@ export default new Router({ component: ping, beforeEnter(to, from, next) { if (!store.getters.isAuthenticated) { - next('/'); + next('/') } else { next(); }