Mercurial > gemma
diff client/src/morphtool/Morphtool.vue @ 1115:1b160eda22cf store-refactoring
moved drawMode to map store
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 05 Nov 2018 14:05:01 +0100 |
parents | f106aee673e7 |
children | 7e788814cbde |
line wrap: on
line diff
--- a/client/src/morphtool/Morphtool.vue Mon Nov 05 13:41:53 2018 +0100 +++ b/client/src/morphtool/Morphtool.vue Mon Nov 05 14:05:01 2018 +0100 @@ -112,7 +112,7 @@ export default { name: "morphtool", computed: { - ...mapState("application", ["drawMode"]), + ...mapState("map", ["drawMode"]), ...mapState("bottlenecks", ["selectedBottleneck", "surveys", "selectedSurvey"]) }, methods: { @@ -120,7 +120,7 @@ this.$store.dispatch("bottlenecks/setSelectedBottleneck", null); this.$store.commit("application/closeSplitScreen"); if (this.drawMode) { - this.$store.commit("application/toggleDrawModeLine"); + this.$store.commit("map/toggleDrawModeLine"); } } }