mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
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:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user