diff client/src/components/gauge/Gauges.vue @ 2751:5da81634bdc4

client: waterlevel diagram: implemented nash-sutcliffe Since there is no real data available currently, I left a commented block of demo data in client/src/store/gauges.js:L139. Uncomment that block to see the coefficients in the diagram.
author Markus Kottlaender <markus@intevation.de>
date Thu, 21 Mar 2019 12:33:43 +0100
parents 85de42146bdb
children d0f6c222f4f9
line wrap: on
line diff
--- a/client/src/components/gauge/Gauges.vue	Thu Mar 21 12:23:52 2019 +0100
+++ b/client/src/components/gauge/Gauges.vue	Thu Mar 21 12:33:43 2019 +0100
@@ -192,8 +192,11 @@
       this.$store.commit("application/splitscreenLoading", true);
       this.loading = true;
       this.$store.commit("application/showSplitscreen", true);
-      this.$store
-        .dispatch("gauges/loadWaterlevels")
+
+      Promise.all([
+        this.$store.dispatch("gauges/loadWaterlevels"),
+        this.$store.dispatch("gauges/loadNashSutcliffe")
+      ])
         .catch(error => {
           const { status, data } = error.response;
           displayError({