Client Fixes (#9021)

* pass the timezoneoffset to the server

* implement yesterdaily modal timer

* fix typos

* todo

* task editing: checklist should not overlay the tags box

* make tags selector use two columns

* show all tags

* do not allow users to go to /login and /register if logged in
This commit is contained in:
Matteo Pagliazzi
2017-09-07 14:16:39 +02:00
committed by GitHub
parent adeee244e3
commit 5ec7815cfe
6 changed files with 116 additions and 60 deletions

View File

@@ -283,6 +283,10 @@ router.beforeEach(function routerGuard (to, from, next) {
return next({name: to.path === '/' ? 'home' : 'login'});
}
if (isUserLoggedIn && (to.name === 'login' || to.name === 'register')) {
return next({name: 'tasks'});
}
next();
});