Mercurial > gemma
changeset 3525:4a31a4dbcf18 import_review
zoom function repaired
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 29 May 2019 15:40:05 +0200 |
parents | 40bc7e3bc561 |
children | c71f1b15c5d9 |
files | client/src/components/importoverview/SectionDetails.vue client/src/components/importoverview/StretchDetails.vue |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/importoverview/SectionDetails.vue Wed May 29 15:35:05 2019 +0200 +++ b/client/src/components/importoverview/SectionDetails.vue Wed May 29 15:40:05 2019 +0200 @@ -78,12 +78,12 @@ this.$store.commit("imports/hideAdditionalInfo"); }, computed: { - ...mapState("imports", ["showAdditional", "details"]), + ...mapState("imports", ["showAdditional", "showLogs", "details"]), ...mapGetters("map", ["openLayersMap"]) }, methods: { zoomToSection() { - const name = this.details.summary.section; + const { name } = this.details.summary; this.openLayersMap() .getLayer("SECTIONS") .setVisible(true); @@ -91,7 +91,7 @@ .dispatch("imports/loadSection", name) .then(response => { if (response.data.features.length < 1) - throw new Error("no feaures found for: " + name); + throw new Error("no features found for: " + name); this.$store.commit( "imports/selectedSectionId", response.data.features[0].id
--- a/client/src/components/importoverview/StretchDetails.vue Wed May 29 15:35:05 2019 +0200 +++ b/client/src/components/importoverview/StretchDetails.vue Wed May 29 15:40:05 2019 +0200 @@ -87,7 +87,7 @@ }, methods: { zoomToStretch() { - const name = this.details.summary.stretch; + const { name } = this.details.summary; this.openLayersMap() .getLayer("STRETCHES") .setVisible(true);