# HG changeset patch # User Thomas Junk # Date 1571237300 -7200 # Node ID a130b5e55ffc5f7c310835d322a57514c216e8af # Parent ce55f15e25e0d8327a4d26013e878dbad68cec24 import_overview: save additional information for approval dialogue in the store diff -r ce55f15e25e0 -r a130b5e55ffc client/src/components/importoverview/ImportOverview.vue --- a/client/src/components/importoverview/ImportOverview.vue Wed Oct 16 16:40:08 2019 +0200 +++ b/client/src/components/importoverview/ImportOverview.vue Wed Oct 16 16:48:20 2019 +0200 @@ -459,12 +459,11 @@ let popupContent = ``; this.reviewed.forEach(r => { - let imp = this.imports.find(i => i.id === r.id); let approved = STATES.APPROVED === r.status; popupContent += ` - - - + + + diff -r ce55f15e25e0 -r a130b5e55ffc client/src/store/imports.js --- a/client/src/store/imports.js Wed Oct 16 16:40:08 2019 +0200 +++ b/client/src/store/imports.js Wed Oct 16 16:48:20 2019 +0200 @@ -198,7 +198,12 @@ if (index !== -1) { state.reviewed[index].status = newStatus; } else { - state.reviewed.push({ id: stagedResult.id, status: newStatus }); + state.reviewed.push({ + id: stagedResult.id, + status: newStatus, + kind: stagedResult.kind, + enqueued: stagedResult.enqueued + }); } } }
${imp.id}${imp.kind.toUpperCase()}${this.$options.filters.dateTime(imp.enqueued)}${r.id}${r.kind.toUpperCase()}${this.$options.filters.dateTime(r.enqueued)} ${this.$gettext(approved ? "approved" : "declined")}