Mercurial > gemma
comparison client/src/application/Morphtool.vue @ 893:5ea4c3f5d2a7
refinement of bottleneck selection
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 02 Oct 2018 14:44:59 +0200 |
parents | 81b84ad962f8 |
children | 1cd749dcb6a3 |
comparison
equal
deleted
inserted
replaced
892:81b84ad962f8 | 893:5ea4c3f5d2a7 |
---|---|
15 </ul> | 15 </ul> |
16 </div> | 16 </div> |
17 <div v-if="selectedMorph" @click="clearSelection" class="ui-element shadow morphtool"> | 17 <div v-if="selectedMorph" @click="clearSelection" class="ui-element shadow morphtool"> |
18 <div class="d-flex flex-row justify-content-between"> | 18 <div class="d-flex flex-row justify-content-between"> |
19 <i class="fa fa-close"></i> | 19 <i class="fa fa-close"></i> |
20 <small>Bottleneck: </small> | |
20 <h6>{{selectedBottleneck.get("objnam")}}</h6> | 21 <h6>{{selectedBottleneck.get("objnam")}}</h6> |
21 </div> | 22 </div> |
22 </div> | 23 </div> |
23 </div> | 24 </div> |
24 </template> | 25 </template> |
96 selectedBottleneck: function() { | 97 selectedBottleneck: function() { |
97 if (this.identifiedFeatures) { | 98 if (this.identifiedFeatures) { |
98 for (let feature of this.identifiedFeatures) { | 99 for (let feature of this.identifiedFeatures) { |
99 let id = feature.getId(); | 100 let id = feature.getId(); |
100 if (id && id.replace(/[.][^.]*$/, "") === "bottlenecks") { | 101 if (id && id.replace(/[.][^.]*$/, "") === "bottlenecks") { |
102 this.$store.commit("mapstore/setSelectedMorph", null); | |
101 return feature; | 103 return feature; |
102 } | 104 } |
103 } | 105 } |
104 } | 106 } |
105 return null; | 107 return null; |