# HG changeset patch # User Markus Kottlaender # Date 1556876381 -7200 # Node ID cdfb0093b7b194ea53bbe2f798b13d2dd0b088f2 # Parent 25c0cbfcc5156ea678c085629a0373a9161aa563 client: gauge diagrams: added information to titles diff -r 25c0cbfcc515 -r cdfb0093b7b1 client/src/components/gauge/HydrologicalConditions.vue --- a/client/src/components/gauge/HydrologicalConditions.vue Fri May 03 11:32:25 2019 +0200 +++ b/client/src/components/gauge/HydrologicalConditions.vue Fri May 03 11:39:41 2019 +0200 @@ -96,7 +96,9 @@ ]), ...mapGetters("gauges", ["selectedGauge"]), title() { - return this.$gettext("Hydrological Conditions"); + return `${this.selectedGauge.properties.objname}: ${this.$gettext( + "Hydrological Conditions" + )} (${this.longtermInterval.join(" - ")})`; } }, watch: { diff -r 25c0cbfcc515 -r cdfb0093b7b1 client/src/components/gauge/Waterlevel.vue --- a/client/src/components/gauge/Waterlevel.vue Fri May 03 11:32:25 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Fri May 03 11:39:41 2019 +0200 @@ -152,7 +152,9 @@ ...mapGetters("gauges", ["selectedGauge"]), ...mapState("user", ["user"]), title() { - return this.$gettext("Waterlevel"); + return `${this.selectedGauge.properties.objname}: ${this.$gettext( + "Waterlevel" + )} (${this.dateFrom.toLocaleDateString()} - ${this.dateTo.toLocaleDateString()})`; }, dateFrom: { get() {