changeset 3282:707d4435aff3

redraw diagram on change of data
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 16 May 2019 10:01:16 +0200
parents 439e1865a2d2
children c1c85e70a368
files client/src/components/fairway/AvailableFairwayDepth.vue
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue	Thu May 16 09:52:32 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepth.vue	Thu May 16 10:01:16 2019 +0200
@@ -530,6 +530,11 @@
       this.diagram.selectAll(".domain").attr("stroke", "black");
     }
   },
+  watch: {
+    fwData() {
+      this.drawDiagram();
+    }
+  },
   LEGEND: app.$gettext("Sum of days"),
   COLORS: {
     LDC: "#FF855E",