changeset 4446:ec8c9793dbb7

import_overview: refresh layers after review
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 20 Sep 2019 12:09:25 +0200
parents 950fecfec4ca
children 725bdc6a9d38
files client/src/components/importoverview/ImportOverview.vue
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importoverview/ImportOverview.vue	Fri Sep 20 10:46:19 2019 +0200
+++ b/client/src/components/importoverview/ImportOverview.vue	Fri Sep 20 12:09:25 2019 +0200
@@ -414,12 +414,16 @@
               .then(response => {
                 this.loadLogs();
                 this.$store.commit("imports/setReviewed", []);
+                this.$store.commit("map/startRefreshLayers");
                 this.$store.commit("gauges/deleteNashSutcliffeCache");
                 this.$store.dispatch("map/refreshLayers");
                 this.$store.dispatch("imports/loadStagingNotifications");
                 this.$store.dispatch("imports/loadStretches");
                 this.$store.dispatch("imports/loadSections");
                 this.$store.commit("map/reviewActive", false);
+                this.$nextTick(() => {
+                  this.$store.commit("map/finishRefreshLayers");
+                });
                 const messages = response.data
                   .map(x => {
                     if (x.message) return x.message;