comparison client/src/components/fairway/AvailableFairwayDepthDialogue.vue @ 5572:3b842e951317 surveysperbottleneckid

change use from name of bottleneck to its id.
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 20 Jul 2021 17:07:51 +0200
parents b5028b98e7c4
children 2b862190aee4
comparison
equal deleted inserted replaced
5472:9321d9fb719f 5572:3b842e951317
657 this.openLayersMap() 657 this.openLayersMap()
658 .getLayer("BOTTLENECKS") 658 .getLayer("BOTTLENECKS")
659 .setVisible(true); 659 .setVisible(true);
660 this.$store.dispatch( 660 this.$store.dispatch(
661 "bottlenecks/setSelectedBottleneck", 661 "bottlenecks/setSelectedBottleneck",
662 this.selectedFairwayAvailabilityFeature.properties.name 662 this.selectedFairwayAvailabilityFeature.properties.bottleneck_id
663 ); 663 );
664 this.$store.commit( 664 this.$store.commit(
665 "bottlenecks/setBottleneckForPrint", 665 "bottlenecks/setBottleneckForPrint",
666 this.selectedBottleneck 666 this.selectedFairwayAvailabilityFeature.properties.bottleneck_id
667 ); 667 );
668 } 668 }
669 if (this.type === this.$options.STRETCH) { 669 if (this.type === this.$options.STRETCH) {
670 this.openLayersMap() 670 this.openLayersMap()
671 .getLayer("STRETCHES") 671 .getLayer("STRETCHES")
831 this.$store.commit("application/showFairwayDepth", false); 831 this.$store.commit("application/showFairwayDepth", false);
832 this.$store.commit("application/showFairwayDepthLNWL", false); 832 this.$store.commit("application/showFairwayDepthLNWL", false);
833 }, 833 },
834 setSelectedBottleneck() { 834 setSelectedBottleneck() {
835 const bn = this.bottlenecksList.filter( 835 const bn = this.bottlenecksList.filter(
836 x => x.properties.name === this.selectedBottleneck 836 x => x.properties.bottleneck_id === this.selectedBottleneck
837 )[0]; 837 )[0];
838 this.$store.commit( 838 this.$store.commit(
839 "fairwayavailability/setSelectedFairwayAvailability", 839 "fairwayavailability/setSelectedFairwayAvailability",
840 bn 840 bn
841 ); 841 );