# HG changeset patch # User Thomas Junk # Date 1552380272 -3600 # Node ID 5472a5be09c2c1c6b9d625a8fcbd571194ef4b94 # Parent eb69c6d27ae5efaa3e98d995383af5ed9d362b20 overview2 WIP diff -r eb69c6d27ae5 -r 5472a5be09c2 client/src/components/importoverview/ImportOverviewAlt.vue --- a/client/src/components/importoverview/ImportOverviewAlt.vue Tue Mar 12 08:47:42 2019 +0100 +++ b/client/src/components/importoverview/ImportOverviewAlt.vue Tue Mar 12 09:44:32 2019 +0100 @@ -17,7 +17,7 @@
- + diff -r eb69c6d27ae5 -r 5472a5be09c2 client/src/components/importoverview/LogDetail.vue --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/components/importoverview/LogDetail.vue Tue Mar 12 09:44:32 2019 +0100 @@ -0,0 +1,26 @@ + + + + + diff -r eb69c6d27ae5 -r 5472a5be09c2 client/src/components/importoverview/LogEntry.vue --- a/client/src/components/importoverview/LogEntry.vue Tue Mar 12 08:47:42 2019 +0100 +++ b/client/src/components/importoverview/LogEntry.vue Tue Mar 12 09:44:32 2019 +0100 @@ -1,33 +1,146 @@ - + diff -r eb69c6d27ae5 -r 5472a5be09c2 client/src/store/imports.js --- a/client/src/store/imports.js Tue Mar 12 08:47:42 2019 +0100 +++ b/client/src/store/imports.js Tue Mar 12 09:44:32 2019 +0100 @@ -123,11 +123,28 @@ }); state.staging = enriched; }, + showDetailsFor: (state, id) => { + state.show = id; + }, + hideDetails: state => { + state.show = NODETAILS; + }, setImportToReview: (state, id) => { if (!isNaN(parseFloat(id)) && isFinite(id)) { state.importToReview = id; } }, + toggleApprove: (state, change) => { + const { id, newStatus } = change; + const stagedResult = state.imports.find(e => { + return e.id === id; + }); + if (stagedResult.status === newStatus) { + stagedResult.status = STATES.NEEDSAPPROVAL; + } else { + stagedResult.status = newStatus; + } + }, toggleApproval: (state, change) => { const { id, newStatus } = change; const stagedResult = state.staging.find(e => {