Mercurial > gemma
diff client/src/components/importoverview/ImportOverview.vue @ 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 | ad2bf9580696 |
children | e3d436052b7c |
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;