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
Merge requests
!31
Hin 730
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Hin 730
hin-730-eqa
into
develop
Overview
1
Commits
9
Pipelines
0
Changes
18
Merged
Bogdan Cochior
requested to merge
hin-730-eqa
into
develop
6 years ago
Overview
1
Commits
9
Pipelines
0
Changes
18
Expand
Update manuscript status after EQA completion
1
0
Merge request reports
Compare
develop
version 1
9baeab31
6 years ago
develop (base)
and
latest version
latest version
ef46291d
9 commits,
6 years ago
version 1
9baeab31
8 commits,
6 years ago
18 files
+
861
−
112
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
18
Search (e.g. *.vue) (Ctrl+P)
packages/component-faraday-selectors/src/index.js
+
12
−
3
Options
@@ -79,13 +79,22 @@ export const canMakeDecision = (state, collection, fragment = {}) => {
return
isEIC
&&
canMakeDecisionStatuses
.
includes
(
status
)
}
const
canEditManuscriptStatuses
=
[
'
draft
'
,
'
technicalChecks
'
]
const
canEditManuscriptStatuses
=
[
'
draft
'
,
'
technicalChecks
'
,
'
inQA
'
]
export
const
canEditManuscript
=
(
state
,
collection
,
fragment
=
{})
=>
{
if
(
fragment
.
id
!==
last
(
collection
.
fragments
))
return
false
const
isAdmin
=
currentUserIs
(
state
,
'
isAdmin
'
)
if
(
!
isAdmin
||
fragment
.
id
!==
last
(
collection
.
fragments
))
return
false
const
status
=
get
(
collection
,
'
status
'
)
return
canEditManuscriptStatuses
.
includes
(
status
)
}
const
canOverrideTechnicalChecksStatuses
=
[
'
technicalChecks
'
,
'
inQA
'
]
export
const
canOverrideTechnicalChecks
=
(
state
,
collection
)
=>
{
const
isAdmin
=
currentUserIs
(
state
,
'
isAdmin
'
)
return
isAdmin
&&
canEditManuscriptStatuses
.
includes
(
status
)
if
(
!
isAdmin
)
return
false
const
status
=
get
(
collection
,
'
status
'
)
return
canOverrideTechnicalChecksStatuses
.
includes
(
status
)
}
export
const
canSeeReviewersReports
=
(
state
,
collectionId
)
=>
{