comparison client/src/components/importoverview/ImportOverview.vue @ 3605:d02d4e31491b

sidebar: move staging notifications to store and update notifications after finishing review
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 05 Jun 2019 11:48:15 +0200
parents c220ad7e61ed
children 24fafb86b528
comparison
equal deleted inserted replaced
3604:6248a4bc10c7 3605:d02d4e31491b
407 .dispatch("imports/confirmReview", data) 407 .dispatch("imports/confirmReview", data)
408 .then(response => { 408 .then(response => {
409 this.loadLogs(); 409 this.loadLogs();
410 this.$store.commit("imports/setReviewed", []); 410 this.$store.commit("imports/setReviewed", []);
411 this.$store.dispatch("map/refreshLayers"); 411 this.$store.dispatch("map/refreshLayers");
412 this.$store.dispatch("imports/loadStagingNotifications");
412 const messages = response.data 413 const messages = response.data
413 .map(x => { 414 .map(x => {
414 if (x.message) return x.message; 415 if (x.message) return x.message;
415 if (x.error) return x.error; 416 if (x.error) return x.error;
416 }) 417 })