Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Commits
73b8717c
Commit
73b8717c
authored
6 years ago
by
Alexandru Munteanu
Browse files
Options
Downloads
Patches
Plain Diff
fix(reviewer-reports): only staff and he can see the reviewer reports breakdown
parent
985fb11a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!58
Sprint #20 - Goal - Reviewers submit report
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/component-faraday-ui/src/ManuscriptCard.js
+2
-1
2 additions, 1 deletion
packages/component-faraday-ui/src/ManuscriptCard.js
packages/components-faraday/src/components/Dashboard/DashboardItems.js
+18
-3
18 additions, 3 deletions
...onents-faraday/src/components/Dashboard/DashboardItems.js
with
20 additions
and
4 deletions
packages/component-faraday-ui/src/ManuscriptCard.js
+
2
−
1
View file @
73b8717c
...
@@ -25,6 +25,7 @@ const ManuscriptCard = ({
...
@@ -25,6 +25,7 @@ const ManuscriptCard = ({
onDelete
,
onDelete
,
canDelete
,
canDelete
,
onCardClick
,
onCardClick
,
canSeeReviewersReports
,
fragment
=
{},
fragment
=
{},
manuscriptType
=
{},
manuscriptType
=
{},
collection
:
{
visibleStatus
=
'
Draft
'
,
handlingEditor
,
customId
,
id
:
collId
},
collection
:
{
visibleStatus
=
'
Draft
'
,
handlingEditor
,
customId
,
id
:
collId
},
...
@@ -76,7 +77,7 @@ const ManuscriptCard = ({
...
@@ -76,7 +77,7 @@ const ManuscriptCard = ({
<
Text
ml
=
{
1
}
mr
=
{
3
}
whiteSpace
=
"
nowrap
"
>
<
Text
ml
=
{
1
}
mr
=
{
3
}
whiteSpace
=
"
nowrap
"
>
{
get
(
handlingEditor
,
'
name
'
,
'
Unassigned
'
)}
{
get
(
handlingEditor
,
'
name
'
,
'
Unassigned
'
)}
<
/Text
>
<
/Text
>
{
h
an
dlingEditor
&&
(
{
c
an
SeeReviewersReports
&&
(
<
Fragment
>
<
Fragment
>
<
Label
mr
=
{
1
}
>
Reviewers
Reports
<
/Label
>
<
Label
mr
=
{
1
}
>
Reviewers
Reports
<
/Label
>
<
ReviewerBreakdown
fragment
=
{
fragment
}
label
=
"
Reviewer Reports
"
/>
<
ReviewerBreakdown
fragment
=
{
fragment
}
label
=
"
Reviewer Reports
"
/>
...
...
This diff is collapsed.
Click to expand it.
packages/components-faraday/src/components/Dashboard/DashboardItems.js
+
18
−
3
View file @
73b8717c
import
React
from
'
react
'
import
React
from
'
react
'
import
{
H3
}
from
'
@pubsweet/ui
'
import
{
H3
}
from
'
@pubsweet/ui
'
import
{
get
,
has
}
from
'
lodash
'
import
{
get
,
has
}
from
'
lodash
'
import
{
connect
}
from
'
react-redux
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
'
import
{
th
}
from
'
@pubsweet/ui-toolkit
'
import
{
th
}
from
'
@pubsweet/ui-toolkit
'
import
{
withRouter
}
from
'
react-router-dom
'
import
{
withRouter
}
from
'
react-router-dom
'
import
{
ManuscriptCard
,
Row
}
from
'
pubsweet-component-faraday-ui
'
import
{
compose
,
setDisplayName
,
withHandlers
}
from
'
recompose
'
import
{
compose
,
setDisplayName
,
withHandlers
}
from
'
recompose
'
import
{
ManuscriptCard
,
Row
}
from
'
pubsweet-component-faraday-ui
'
import
{
canSeeReviewersReports
}
from
'
pubsweet-component-faraday-selectors
'
import
withVersion
from
'
./withVersion
'
import
withVersion
from
'
./withVersion
'
const
DashboardItem
=
withVersion
(
ManuscriptCard
)
const
DashboardItem
=
compose
(
withVersion
,
connect
((
state
,
{
collection
})
=>
({
canSeeReviewersReports
:
canSeeReviewersReports
(
state
,
get
(
collection
,
'
id
'
,
''
),
),
})),
)(
ManuscriptCard
)
const
DashboardItems
=
({
onClick
,
list
,
deleteProject
})
=>
(
const
DashboardItems
=
({
list
,
onClick
,
deleteProject
,
canSeeReviewersReports
,
})
=>
(
<
Root
>
<
Root
>
{
!
list
.
length
?
(
{
!
list
.
length
?
(
<
Row
justify
=
"
center
"
mt
=
{
4
}
>
<
Row
justify
=
"
center
"
mt
=
{
4
}
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment