Mercurial > gemma
diff client/src/components/fairway/Profiles.vue @ 2436:64ff5984351e
client: renamed store property
In alignment to 3679d604645e the related store property was also renamed.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 01 Mar 2019 09:00:53 +0100 |
parents | 3679d604645e |
children | bb5286acfee2 |
line wrap: on
line diff
--- a/client/src/components/fairway/Profiles.vue Fri Mar 01 08:28:00 2019 +0100 +++ b/client/src/components/fairway/Profiles.vue Fri Mar 01 09:00:53 2019 +0100 @@ -25,7 +25,7 @@ <translate>Select Bottleneck</translate> </option> <option - v-for="bn in bottlenecks" + v-for="bn in bottlenecksList" :key="bn.properties.name" :value="bn.properties.name" >{{ bn.properties.name }}</option @@ -259,7 +259,11 @@ ...mapGetters("map", ["getVSourceByName"]), ...mapState("application", ["showProfiles"]), ...mapState("map", ["lineTool", "polygonTool", "cutTool"]), - ...mapState("bottlenecks", ["bottlenecks", "surveys", "surveysLoading"]), + ...mapState("bottlenecks", [ + "bottlenecksList", + "surveys", + "surveysLoading" + ]), ...mapState("fairwayprofile", [ "previousCuts", "startPoint", @@ -452,7 +456,7 @@ displayInfo({ title: this.$gettext("Profile deleted!") }); }, moveToBottleneck() { - const bottleneck = this.bottlenecks.find( + const bottleneck = this.bottlenecksList.find( bn => bn.properties.name === this.selectedBottleneck ); if (!bottleneck) return;