diff client/src/components/systemconfiguration/DataAccuracy.vue @ 3625:a688a478e35f configuration

implemented configuration backend and frontend
author Markus Kottlaender <markus@intevation.de>
date Fri, 07 Jun 2019 12:53:41 +0200
parents bcf9713ee359
children a7abfb3d400d
line wrap: on
line diff
--- a/client/src/components/systemconfiguration/DataAccuracy.vue	Wed Jun 05 18:50:54 2019 +0200
+++ b/client/src/components/systemconfiguration/DataAccuracy.vue	Fri Jun 07 12:53:41 2019 +0200
@@ -330,7 +330,17 @@
   },
   methods: {
     submit() {
-      this.$store.commit("application/config", this.config);
+      this.$store.dispatch("application/saveConfig", {
+        bn_revtime_multiplier: this.config.bn_revtime_multiplier,
+        gm_latest_hours: this.config.gm_latest_hours,
+        gm_min_values_14d: this.config.gm_min_values_14d,
+        gm_forecast_offset_24h: this.config.gm_forecast_offset_24h,
+        gm_forecast_offset_72h: this.config.gm_forecast_offset_72h,
+        gm_forecast_vs_reality_nsc_24h: this.config
+          .gm_forecast_vs_reality_nsc_24h,
+        gm_forecast_vs_reality_nsc_72h: this.config
+          .gm_forecast_vs_reality_nsc_72h
+      });
     }
   }
 };