Skip to content
Snippets Groups Projects
Commit f9f3957a authored by Sebastian Mihalache's avatar Sebastian Mihalache
Browse files

Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into develop

parents 65520961 141d3312
No related branches found
No related tags found
1 merge request!13Sprint #14
...@@ -67,6 +67,7 @@ export default compose( ...@@ -67,6 +67,7 @@ export default compose(
getSignedUrl, getSignedUrl,
clearCustomError, clearCustomError,
reviewerDecision, reviewerDecision,
getFragment: actions.getFragment,
getCollection: actions.getCollection, getCollection: actions.getCollection,
updateVersion: actions.updateFragment, updateVersion: actions.updateFragment,
}, },
...@@ -102,6 +103,7 @@ export default compose( ...@@ -102,6 +103,7 @@ export default compose(
replace, replace,
history, history,
location, location,
getFragment,
getCollection, getCollection,
reviewerDecision, reviewerDecision,
setEditorInChief, setEditorInChief,
...@@ -114,11 +116,15 @@ export default compose( ...@@ -114,11 +116,15 @@ export default compose(
} }
const collectionId = match.params.project const collectionId = match.params.project
const fragmentId = match.params.version
const { agree, invitationId } = parseSearchParams(location.search) const { agree, invitationId } = parseSearchParams(location.search)
if (agree === 'true') { if (agree === 'true') {
replace(location.pathname) replace(location.pathname)
reviewerDecision(invitationId, collectionId, true) reviewerDecision(invitationId, collectionId, fragmentId, true)
.then(() => getCollection({ id: match.params.project })) .then(() => {
getCollection({ id: collectionId })
getFragment({ id: collectionId }, { id: fragmentId })
})
.catch(redirectToError(replace)) .catch(redirectToError(replace))
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment