changeset 908:21ab63347a6c

open identify only with data
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 02 Oct 2018 17:08:40 +0200
parents 67b334aaff39
children d612bc4dc3e9
files client/src/application/Morphtool.vue client/src/layers/Identify.vue
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/application/Morphtool.vue	Tue Oct 02 16:53:18 2018 +0200
+++ b/client/src/application/Morphtool.vue	Tue Oct 02 17:08:40 2018 +0200
@@ -98,7 +98,7 @@
       if (this.identifiedFeatures) {
         for (let feature of this.identifiedFeatures) {
           let id = feature.getId();
-          if (/bottlenecks/.test(id)) {
+          if (id && /bottlenecks/.test(id)) {
             this.$store.commit("mapstore/setSelectedMorph", null);
             return feature;
           }
--- a/client/src/layers/Identify.vue	Tue Oct 02 16:53:18 2018 +0200
+++ b/client/src/layers/Identify.vue	Tue Oct 02 17:08:40 2018 +0200
@@ -88,6 +88,11 @@
       collapsed: true
     };
   },
+  watch: {
+    identifiedFeatures() {
+      this.collapsed = !this.identifiedFeatures;
+    }
+  },
   computed: {
     ...mapState("mapstore", ["identifiedFeatures"]),
     identifyStyle() {