changeset 3157:18a639e1f7f4

client: gauges: fixed zooming when selecting a gauge from the dialog The map was moved in two different places (watcher and change event) at the same time, making the zoom not work properly.
author Markus Kottlaender <markus@intevation.de>
date Mon, 06 May 2019 12:09:09 +0200
parents cb3b31566e48
children f91df0bc4986
files client/src/components/gauge/Gauges.vue
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/gauge/Gauges.vue	Mon May 06 11:15:28 2019 +0200
+++ b/client/src/components/gauge/Gauges.vue	Mon May 06 12:09:09 2019 +0200
@@ -14,7 +14,6 @@
       <div class="box-body">
         <UISpinnerOverlay v-if="loading" />
         <select
-          @change="moveToGauge"
           v-model="selectedGaugeISRS"
           class="form-control font-weight-bold"
         >
@@ -182,14 +181,6 @@
     close() {
       this.$store.commit("application/showGauges", false);
     },
-    moveToGauge() {
-      if (!this.selectedGauge) return;
-      this.$store.dispatch("map/moveToFeauture", {
-        feature: this.selectedGauge,
-        zoom: null,
-        preventZoomOut: true
-      });
-    },
     showWaterlevelDiagram() {
       this.loading = true;
       Promise.all([