diff client/src/store/application.js @ 3850:0d0e52612c32

client: reload config right after saving it to make sure everything is updated
author Markus Kottlaender <markus@intevation.de>
date Mon, 08 Jul 2019 17:24:50 +0200
parents 67984bf6dba6
children 685a5fd3a2f3
line wrap: on
line diff
--- a/client/src/store/application.js	Mon Jul 08 17:07:38 2019 +0200
+++ b/client/src/store/application.js	Mon Jul 08 17:24:50 2019 +0200
@@ -143,14 +143,14 @@
   },
   actions: {
     loadConfig({ commit }) {
-      HTTP.get("/system/settings", {
+      return HTTP.get("/system/settings", {
         headers: { "X-Gemma-Auth": localStorage.getItem("token") }
       }).then(response => {
         commit("config", response.data);
       });
     },
     saveConfig(context, config) {
-      HTTP.put("/system/settings", config, {
+      return HTTP.put("/system/settings", config, {
         headers: {
           "X-Gemma-Auth": localStorage.getItem("token"),
           "Content-type": "application/json"