comparison client/src/components/map/Map.vue @ 4426:a769e14f4baf

fix typo, encodeURIComponent only for username
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 18 Sep 2019 16:11:43 +0200
parents 562f9da8ba0b
children 69166db6ba8a
comparison
equal deleted inserted replaced
4425:fe8c331760ae 4426:a769e14f4baf
185 // move to user specific default extent if map loads for the first time 185 // move to user specific default extent if map loads for the first time
186 // checking initialLoad will be obsolete once we abandoned the separated admin context 186 // checking initialLoad will be obsolete once we abandoned the separated admin context
187 if (this.initialLoad) { 187 if (this.initialLoad) {
188 this.$store.commit("map/initialLoad", false); 188 this.$store.commit("map/initialLoad", false);
189 var currentUser = this.$store.state.user.user; 189 var currentUser = this.$store.state.user.user;
190 HTTP.get(encodeURIComponent(`/users/${currentUser}`), { 190 HTTP.get("/users/" + encodeURIComponent(`${currentUser}`), {
191 headers: { 191 headers: {
192 "X-Gemma-Auth": localStorage.getItem("token"), 192 "X-Gemma-Auth": localStorage.getItem("token"),
193 "Content-type": "text/xml; charset=UTF-8" 193 "Content-type": "text/xml; charset=UTF-8"
194 } 194 }
195 }) 195 })