Mercurial > gemma
diff client/src/components/layers/Layers.vue @ 5085:fe63733750d7 time-sliding
client: correct refresh layers request time
* make a variable "refreshLayersTime" to track the time used in the refreshLayers request,
to avoid using old value as long as "currentVisibleTime" gets its value after the refreshLayers request is ended,
which was leading to show time in toolbar does not actually match the
time in the layers reload request.
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 19 Mar 2020 17:43:23 +0100 |
parents | aeb100b4c41b |
children | fbffb3d7e336 |
line wrap: on
line diff
--- a/client/src/components/layers/Layers.vue Thu Mar 19 07:23:35 2020 +0100 +++ b/client/src/components/layers/Layers.vue Thu Mar 19 17:43:23 2020 +0100 @@ -99,14 +99,12 @@ this.$store.commit("application/showLayers", false); }, refreshLayers() { - this.$store.commit("application/setCurrentVisibleTime", new Date()); + this.$store.commit("application/setLayerRefreshedTime", new Date()); this.$store.commit("map/startRefreshLayers"); - this.$store.commit("map/startTimeSlide"); this.$store.commit("gauges/deleteNashSutcliffeCache"); this.$store.dispatch("map/refreshLayers"); this.$nextTick(() => { this.$store.commit("map/finishRefreshLayers"); - this.$store.commit("map/finishTimeSlide"); }); } }