Mercurial > gemma
diff client/src/components/gauge/HydrologicalConditions.vue @ 3965:2aaa1948b525 diagram-cleanup
client: diagrams: moved downloadPDF function to mixin
and thereby unified how titles are created
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 12 Jul 2019 15:32:15 +0200 |
parents | afc7bca44df4 |
children | 2f024d6189ca |
line wrap: on
line diff
--- a/client/src/components/gauge/HydrologicalConditions.vue Fri Jul 12 15:18:15 2019 +0200 +++ b/client/src/components/gauge/HydrologicalConditions.vue Fri Jul 12 15:32:15 2019 +0200 @@ -172,22 +172,6 @@ : "DEFAULT" ); }, - downloadPDF() { - let diagramTitle = - this.gaugeInfo(this.selectedGauge) + - ": Hydrological Conditions " + - this.longtermInterval.join(" - "); - - this.generatePDF({ - templateData: this.templateData, - diagramTitle: diagramTitle - }); - - this.pdf.doc.save( - this.selectedGauge.properties.objname + - " Hydrological-condition Diagram.pdf" - ); - }, // Diagram legend addDiagramLegend(position, offset, color) { let x = offset.x,