Mercurial > gemma
comparison client/src/components/gauge/Waterlevel.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 | 38d9edce3331 |
comparison
equal
deleted
inserted
replaced
3147:25c0cbfcc515 | 3148:cdfb0093b7b1 |
---|---|
150 ...mapState("application", ["paneSetup"]), | 150 ...mapState("application", ["paneSetup"]), |
151 ...mapState("gauges", ["dateFrom", "waterlevels", "nashSutcliffe"]), | 151 ...mapState("gauges", ["dateFrom", "waterlevels", "nashSutcliffe"]), |
152 ...mapGetters("gauges", ["selectedGauge"]), | 152 ...mapGetters("gauges", ["selectedGauge"]), |
153 ...mapState("user", ["user"]), | 153 ...mapState("user", ["user"]), |
154 title() { | 154 title() { |
155 return this.$gettext("Waterlevel"); | 155 return `${this.selectedGauge.properties.objname}: ${this.$gettext( |
156 "Waterlevel" | |
157 )} (${this.dateFrom.toLocaleDateString()} - ${this.dateTo.toLocaleDateString()})`; | |
156 }, | 158 }, |
157 dateFrom: { | 159 dateFrom: { |
158 get() { | 160 get() { |
159 return this.$store.state.gauges.dateFrom; | 161 return this.$store.state.gauges.dateFrom; |
160 } | 162 } |