Mercurial > gemma
changeset 2696:cc3eee8b5d71
client: waterlevel diagram: update diagram immediately when selectedGauge changes
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 18 Mar 2019 10:52:35 +0100 |
parents | 04b082a86d50 |
children | 8279c044c04b |
files | client/src/components/gauge/Gauges.vue |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/gauge/Gauges.vue Mon Mar 18 10:33:32 2019 +0100 +++ b/client/src/components/gauge/Gauges.vue Mon Mar 18 10:52:35 2019 +0100 @@ -100,7 +100,7 @@ }; }, computed: { - ...mapState("application", ["showGauges"]), + ...mapState("application", ["showGauges", "activeSplitscreenId"]), ...mapState("gauges", ["gauges"]), ...mapGetters("gauges", ["selectedGauge"]), selectedGaugeISRS: { @@ -112,6 +112,13 @@ } } }, + watch: { + selectedGaugeISRS() { + if (this.activeSplitscreenId === "gauge-waterlevel") { + this.showWaterlevelDiagram(); + } + } + }, methods: { close() { this.$store.commit("application/showGauges", false);