Mercurial > gemma
changeset 3408:a26c1d745fc3
client: pdf-template: fix display of user and move property to mixins.js
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 23 May 2019 13:39:04 +0200 |
parents | 7ea54c3b3fd6 |
children | c0f5f62343c9 |
files | client/src/components/Pdftool.vue client/src/components/fairway/AvailableFairwayDepth.vue client/src/components/fairway/AvailableFairwayDepthLNWL.vue client/src/components/fairway/Fairwayprofile.vue client/src/components/gauge/Waterlevel.vue client/src/lib/mixins.js |
diffstat | 6 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue Thu May 23 13:37:35 2019 +0200 +++ b/client/src/components/Pdftool.vue Thu May 23 13:39:04 2019 +0200 @@ -174,7 +174,6 @@ ...mapState("application", ["showPdfTool", "logoForPDF"]), ...mapState("bottlenecks", ["selectedBottleneck", "selectedSurvey"]), ...mapState("map", ["isolinesLegendImgDataURL"]), - ...mapState("user", ["user"]), ...mapGetters("map", ["openLayersMap"]), generatePdfLable() { return this.$gettext("Generate PDF");
--- a/client/src/components/fairway/AvailableFairwayDepth.vue Thu May 23 13:37:35 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Thu May 23 13:39:04 2019 +0200 @@ -178,7 +178,6 @@ "frequency", "legend" ]), - ...mapState("user", ["user"]), frequencyToRange() { const frequencies = { [FREQUENCIES.MONTHLY]: [-33, 33],
--- a/client/src/components/fairway/AvailableFairwayDepthLNWL.vue Thu May 23 13:37:35 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepthLNWL.vue Thu May 23 13:39:04 2019 +0200 @@ -168,7 +168,6 @@ "frequency", "legendLNWL" ]), - ...mapState("user", ["user"]), fromDate() { return this.from; },
--- a/client/src/components/fairway/Fairwayprofile.vue Thu May 23 13:37:35 2019 +0200 +++ b/client/src/components/fairway/Fairwayprofile.vue Thu May 23 13:39:04 2019 +0200 @@ -154,7 +154,6 @@ "waterLevels" ]), ...mapState("application", ["paneSetup"]), - ...mapState("user", ["user"]), title() { let dates = [this.selectedSurvey.date_info]; if (this.additionalSurvey) dates.push(this.additionalSurvey.date_info);
--- a/client/src/components/gauge/Waterlevel.vue Thu May 23 13:37:35 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Thu May 23 13:39:04 2019 +0200 @@ -180,7 +180,6 @@ "nashSutcliffe" ]), ...mapGetters("gauges", ["selectedGauge"]), - ...mapState("user", ["user"]), title() { return `${this.selectedGauge.properties.objname}: ${this.$gettext( "Waterlevel"
--- a/client/src/lib/mixins.js Thu May 23 13:37:35 2019 +0200 +++ b/client/src/lib/mixins.js Thu May 23 13:39:04 2019 +0200 @@ -64,7 +64,8 @@ export const pdfgen = { computed: { - ...mapState("application", ["logoForPDF"]) + ...mapState("application", ["logoForPDF"]), + ...mapState("user", ["user"]) }, methods: { // add text at specific coordinates and determine how many wrolds in a single line