comparison client/src/components/gauge/HydrologicalConditions.vue @ 3148:cdfb0093b7b1

client: gauge diagrams: added information to titles
author Markus Kottlaender <markus@intevation.de>
date Fri, 03 May 2019 11:39:41 +0200
parents 25c0cbfcc515
children 9d38df37c1f8
comparison
equal deleted inserted replaced
3147:25c0cbfcc515 3148:cdfb0093b7b1
94 "yearCompare", 94 "yearCompare",
95 "longtermInterval" 95 "longtermInterval"
96 ]), 96 ]),
97 ...mapGetters("gauges", ["selectedGauge"]), 97 ...mapGetters("gauges", ["selectedGauge"]),
98 title() { 98 title() {
99 return this.$gettext("Hydrological Conditions"); 99 return `${this.selectedGauge.properties.objname}: ${this.$gettext(
100 "Hydrological Conditions"
101 )} (${this.longtermInterval.join(" - ")})`;
100 } 102 }
101 }, 103 },
102 watch: { 104 watch: {
103 paneSetup() { 105 paneSetup() {
104 this.$nextTick(() => this.drawDiagram()); 106 this.$nextTick(() => this.drawDiagram());