Mercurial > gemma
comparison client/src/components/gauge/Waterlevel.vue @ 3068:492c30ca3142
client: diagrams: added watchers to ensure diagram update when data changes
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 17 Apr 2019 09:46:03 +0200 |
parents | 0ffa9d418959 |
children | 8e364945a390 |
comparison
equal
deleted
inserted
replaced
3067:0ffa9d418959 | 3068:492c30ca3142 |
---|---|
184 }, | 184 }, |
185 dateTo: { | 185 dateTo: { |
186 get() { | 186 get() { |
187 return this.$store.state.gauges.dateTo; | 187 return this.$store.state.gauges.dateTo; |
188 } | 188 } |
189 } | |
190 }, | |
191 watch: { | |
192 waterlevels() { | |
193 this.drawDiagram(); | |
189 } | 194 } |
190 }, | 195 }, |
191 methods: { | 196 methods: { |
192 downloadPDF() { | 197 downloadPDF() { |
193 var svg = this.$refs.diagramContainer.innerHTML; | 198 var svg = this.$refs.diagramContainer.innerHTML; |