Mercurial > gemma
changeset 2321:c00e3f7f5b17
client: use constant names instead of strings
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Tue, 19 Feb 2019 09:13:27 +0100 |
parents | f2c67ebeaabb |
children | a25b4988eb0c |
files | client/src/components/Pdftool.vue |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue Tue Feb 19 08:41:31 2019 +0100 +++ b/client/src/components/Pdftool.vue Tue Feb 19 09:13:27 2019 +0100 @@ -104,6 +104,7 @@ import locale2 from "locale2"; import { HTTP } from "../lib/http"; import { displayError } from "@/lib/errors.js"; +import { LAYERS } from "@/store/map.js"; var paperSizes = { // in millimeter, landscape [width, height] @@ -681,7 +682,7 @@ if ( this.selectedBottleneck && this.selectedSurvey && - this.getLayerByName("Bottleneck isolines").isVisible + this.getLayerByName(LAYERS.BOTTLENECKISOLINE).isVisible ) { // transforming into an HTMLImageElement only to find out // the width x height of the legend image @@ -720,7 +721,7 @@ if ( this.selectedBottleneck && this.selectedSurvey && - this.getLayerByName("Bottleneck isolines").isVisible + this.getLayerByName(LAYERS.BOTTLENECKISOLINE).isVisible ) { let survey = this.selectedSurvey;