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
d8d628c6
Commit
d8d628c6
authored
6 years ago
by
Iosif Boanca
Browse files
Options
Downloads
Patches
Plain Diff
HIN-1006 selector added for tests
parent
299bbec0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!96
Hin 1006
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/component-faraday-selectors/src/index.js
+4
-3
4 additions, 3 deletions
packages/component-faraday-selectors/src/index.js
packages/component-manuscript/src/components/ManuscriptLayout.js
+1
-1
1 addition, 1 deletion
...s/component-manuscript/src/components/ManuscriptLayout.js
with
5 additions
and
4 deletions
packages/component-faraday-selectors/src/index.js
+
4
−
3
View file @
d8d628c6
...
...
@@ -61,15 +61,16 @@ export const canViewReviewersDetails = (state, collection = {}) => {
return
canViewReports
(
state
,
collection
.
id
)
}
const
authorCannotViewReportsDetails
=
[
'
submit
ted
'
,
'
re
jec
ted
'
]
const
authorCannotViewReportsDetails
=
[
'
rejec
ted
'
,
'
re
visionReques
ted
'
]
export
const
authorCanViewReportsDetails
=
(
state
,
collection
=
{})
=>
{
console
.
log
(
collection
)
if
(
authorCannotViewReportsDetails
.
includes
(
get
(
collection
,
'
status
'
,
'
draft
'
))
)
{
return
false
return
authorCanViewReports
(
state
,
collection
.
id
)
}
return
authorCanViewReports
(
state
,
collection
.
id
)
return
false
}
export
const
authorCanViewReports
=
(
state
,
collectionId
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
packages/component-manuscript/src/components/ManuscriptLayout.js
+
1
−
1
View file @
d8d628c6
...
...
@@ -186,7 +186,7 @@ const ManuscriptLayout = ({
toggle
=
{
toggleReviewerDetails
}
/
>
)}
{
console
.
log
(
currentUser
)}
{
get
(
currentUser
,
'
permissions.authorCanViewReportsDetails
'
,
false
)
&&
(
<
AuthorReviews
currentUser
=
{
currentUser
}
...
...
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