Mercurial > gemma
changeset 2410:228387d5f2c5 staging_consolidation
wip
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 28 Feb 2019 12:04:18 +0100 |
parents | a4f36c481f4b |
children | f39c4b432601 |
files | client/src/components/importoverview/staging/Staging.vue |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/importoverview/staging/Staging.vue Wed Feb 27 16:21:45 2019 +0100 +++ b/client/src/components/importoverview/staging/Staging.vue Thu Feb 28 12:04:18 2019 +0100 @@ -43,11 +43,24 @@ } }, methods: { + loadImportQueue() { + this.$store + .dispatch("imports/getImports") + .then(() => {}) + .catch(error => { + const { status, data } = error.response; + displayError({ + title: this.$gettext("Backend Error"), + message: `${status}: ${data.message || data}` + }); + }); + }, save() { if (!this.processedReviews.length) return; this.$store .dispatch("imports/confirmReview", this.processedReviews) .then(response => { + this.loadImportQueue(); const messages = response.data .map(x => { if (x.message) return x.message;