# HG changeset patch # User Bernhard Reiter # Date 1539014968 -7200 # Node ID f27fe4e9bfd93279c279a191cd08b55ea75dd6ea # Parent 430d52c2f6ef60f30f1ae22c5da378a1156c398a client: improve morphology mode * Allow profiles for line segments starting within a bottleneck area, by not updating the selectedBottleneck in the Morphtool component if drawMode is active. Also disable the drawMode if the selected Morphology is cleared. diff -r 430d52c2f6ef -r f27fe4e9bfd9 client/src/application/Morphtool.vue --- a/client/src/application/Morphtool.vue Mon Oct 08 17:20:42 2018 +0200 +++ b/client/src/application/Morphtool.vue Mon Oct 08 18:09:28 2018 +0200 @@ -95,7 +95,7 @@ ...mapGetters("application", ["drawMode"]), ...mapState("mapstore", ["identifiedFeatures", "selectedMorph"]), selectedBottleneck: function() { - if (this.identifiedFeatures) { + if (this.identifiedFeatures && !this.drawMode) { for (let feature of this.identifiedFeatures) { let id = feature.getId(); if (id && id.replace(/[.][^.]*$/, "") === "bottlenecks") { @@ -146,6 +146,9 @@ this.$store.commit("mapstore/setIdentifiedFeatures", []); this.$store.commit("mapstore/setSelectedMorph", null); this.surveyList = null; + if (this.drawMode) { + this.$store.commit("application/toggleDrawModeLine"); + } } } };