Mercurial > gemma
diff client/src/components/importoverview/BottleneckDetail.vue @ 4101:7afe411eeb48
import review: on opening bottleneckreview details, the bottleneck source is refreshed
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 26 Jul 2019 12:53:01 +0200 |
parents | 0374197c384f |
children | 0f258757e73a |
line wrap: on
line diff
--- a/client/src/components/importoverview/BottleneckDetail.vue Fri Jul 26 10:38:24 2019 +0200 +++ b/client/src/components/importoverview/BottleneckDetail.vue Fri Jul 26 12:53:01 2019 +0200 @@ -98,12 +98,22 @@ }, mounted() { this.loadBottlenecks(); + this.reloadBottleneckLayer(); }, computed: { + ...mapState("map", ["openLayersMaps"]), ...mapState("imports", ["showLogs", "details"]), ...mapGetters("map", ["openLayersMap"]) }, methods: { + reloadBottleneckLayer() { + this.openLayersMaps.forEach(map => { + map + .getLayer("BOTTLENECKISOLINE") + .getSource() + .refresh(); + }); + }, loadBottlenecks() { const generateFilter = () => { const { bottlenecks } = this.details.summary;