Mercurial > gemma
comparison client/src/components/importoverview/staging/Staging.vue @ 2410:228387d5f2c5 staging_consolidation
wip
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 28 Feb 2019 12:04:18 +0100 |
parents | a4f36c481f4b |
children | 53323f701cf3 |
comparison
equal
deleted
inserted
replaced
2403:a4f36c481f4b | 2410:228387d5f2c5 |
---|---|
41 filteredData() { | 41 filteredData() { |
42 return this.staging; | 42 return this.staging; |
43 } | 43 } |
44 }, | 44 }, |
45 methods: { | 45 methods: { |
46 loadImportQueue() { | |
47 this.$store | |
48 .dispatch("imports/getImports") | |
49 .then(() => {}) | |
50 .catch(error => { | |
51 const { status, data } = error.response; | |
52 displayError({ | |
53 title: this.$gettext("Backend Error"), | |
54 message: `${status}: ${data.message || data}` | |
55 }); | |
56 }); | |
57 }, | |
46 save() { | 58 save() { |
47 if (!this.processedReviews.length) return; | 59 if (!this.processedReviews.length) return; |
48 this.$store | 60 this.$store |
49 .dispatch("imports/confirmReview", this.processedReviews) | 61 .dispatch("imports/confirmReview", this.processedReviews) |
50 .then(response => { | 62 .then(response => { |
63 this.loadImportQueue(); | |
51 const messages = response.data | 64 const messages = response.data |
52 .map(x => { | 65 .map(x => { |
53 if (x.message) return x.message; | 66 if (x.message) return x.message; |
54 if (x.error) return x.error; | 67 if (x.error) return x.error; |
55 }) | 68 }) |