Mercurial > gemma
diff 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 |
line wrap: on
line diff
--- a/client/src/components/gauge/Waterlevel.vue Wed Apr 17 09:30:00 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Wed Apr 17 09:46:03 2019 +0200 @@ -188,6 +188,11 @@ } } }, + watch: { + waterlevels() { + this.drawDiagram(); + } + }, methods: { downloadPDF() { var svg = this.$refs.diagramContainer.innerHTML;