Mercurial > gemma
changeset 2638:6c1730fc3dc1
client: importsoverview2: clear reviewed array after finishing review
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Thu, 14 Mar 2019 10:50:18 +0100 |
parents | 472b0e653644 |
children | 0db742c7813d |
files | client/src/components/importoverview/ImportOverviewAlt.vue client/src/store/imports.js |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/importoverview/ImportOverviewAlt.vue Thu Mar 14 10:34:49 2019 +0100 +++ b/client/src/components/importoverview/ImportOverviewAlt.vue Thu Mar 14 10:50:18 2019 +0100 @@ -132,6 +132,7 @@ .dispatch("imports/confirmReview", data) .then(response => { this.loadLogs(); + this.$store.commit("imports/setReviewed", []); const messages = response.data .map(x => { if (x.message) return x.message;
--- a/client/src/store/imports.js Thu Mar 14 10:34:49 2019 +0100 +++ b/client/src/store/imports.js Thu Mar 14 10:50:18 2019 +0100 @@ -98,6 +98,9 @@ setStretches: (state, stretches) => { state.stretches = stretches; }, + setReviewed: (state, reviewed) => { + state.reviewed = reviewed; + }, setImports: (state, imports) => { const lookUp = state.reviewed.reduce((o, n) => { const { id, status } = n;