# HG changeset patch # User Markus Kottlaender # Date 1552902755 -3600 # Node ID cc3eee8b5d710bd672feb10113b7841e31fd670e # Parent 04b082a86d504901bcb6039a4369f068db179385 client: waterlevel diagram: update diagram immediately when selectedGauge changes diff -r 04b082a86d50 -r cc3eee8b5d71 client/src/components/gauge/Gauges.vue --- 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);