diff client/src/components/Login.vue @ 3680:0300282b9537

client: configuration: changed loading strategy Only load configuration values from backend when entering the main/map view or systemconfiguration page
author Markus Kottlaender <markus@intevation.de>
date Tue, 18 Jun 2019 12:02:18 +0200
parents 4909f98f8520
children 008bc1ae8897
line wrap: on
line diff
--- a/client/src/components/Login.vue	Mon Jun 17 18:45:48 2019 +0200
+++ b/client/src/components/Login.vue	Tue Jun 18 12:02:18 2019 +0200
@@ -193,10 +193,8 @@
         .dispatch("user/login", { user, password })
         .then(() => {
           this.loginFailed = false;
-          this.$store.dispatch("application/loadConfig").then(() => {
-            this.$router.push(localStorage.getItem("tempRoute") || "/");
-            localStorage.removeItem("tempRoute");
-          });
+          this.$router.push(localStorage.getItem("tempRoute") || "/");
+          localStorage.removeItem("tempRoute");
         })
         .catch(error => {
           this.loginFailed = true;