Mercurial > gemma
changeset 3671:4909f98f8520
client: make sure config is loaded after login
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 17 Jun 2019 12:54:13 +0200 |
parents | 9b02c0b00d7b |
children | 256be8269227 |
files | client/src/components/Login.vue |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Login.vue Mon Jun 17 12:27:55 2019 +0200 +++ b/client/src/components/Login.vue Mon Jun 17 12:54:13 2019 +0200 @@ -193,8 +193,10 @@ .dispatch("user/login", { user, password }) .then(() => { this.loginFailed = false; - this.$router.push(localStorage.getItem("tempRoute") || "/"); - localStorage.removeItem("tempRoute"); + this.$store.dispatch("application/loadConfig").then(() => { + this.$router.push(localStorage.getItem("tempRoute") || "/"); + localStorage.removeItem("tempRoute"); + }); }) .catch(error => { this.loginFailed = true;