Skip to content
Snippets Groups Projects
Commit 05150abd authored by Tania Fecheta's avatar Tania Fecheta
Browse files

feat(getFragmentAuthorResponse): make selector to grab the author response

parent d9868685
No related branches found
No related tags found
2 merge requests!136Sprint 22 features (updates),!135Hin 1111
......@@ -372,6 +372,9 @@ export const canMakeHERecommendation = (state, { collection, statuses }) => {
return statusImportance > 1 && statusImportance < 9 && validHE
}
export const getFragmentAuthorResponse = (state, fragmentId) =>
get(state, `fragments.${fragmentId}.responseToReviewers`, {})
// #region Editorial and reviewer recommendations
export const getFragmentRecommendations = (state, fragmentId) =>
get(state, `fragments.${fragmentId}.recommendations`, [])
......
......@@ -54,6 +54,7 @@ const ManuscriptLayout = ({
pendingOwnRecommendation,
toggleReviewerRecommendations,
reviewerRecommendationExpanded,
authorResponseToRevisonRequest,
shouldReview,
submittedOwnRecommendation,
reviewerReports,
......
......@@ -47,6 +47,7 @@ import {
canViewReviewersDetails,
canViewEditorialComments,
pendingReviewerInvitation,
getFragmentAuthorResponse,
canOverrideTechnicalChecks,
authorCanViewReportsDetails,
getOwnPendingRecommendation,
......@@ -125,6 +126,10 @@ export default compose(
state,
match.params.version,
),
authorResponseToRevisonRequest: getFragmentAuthorResponse(
state,
match.params.version,
),
}),
{
changeForm,
......
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