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
894e2a46
Commit
894e2a46
authored
6 years ago
by
Mihail Hagiu
Browse files
Options
Downloads
Patches
Plain Diff
fix: ReviewersTableVersions
Using lodash get function for isLatestVersion
parent
a8c2a373
No related branches found
No related tags found
2 merge requests
!136
Sprint 22 features (updates)
,
!127
Hin 1082
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/component-faraday-ui/src/contextualBoxes/ReviewerDetails.js
+9
-8
9 additions, 8 deletions
...mponent-faraday-ui/src/contextualBoxes/ReviewerDetails.js
packages/component-manuscript/src/components/utils.js
+5
-2
5 additions, 2 deletions
packages/component-manuscript/src/components/utils.js
with
14 additions
and
10 deletions
packages/component-faraday-ui/src/contextualBoxes/ReviewerDetails.js
+
9
−
8
View file @
894e2a46
...
@@ -104,14 +104,15 @@ const ReviewerDetails = ({
...
@@ -104,14 +104,15 @@ const ReviewerDetails = ({
/
>
/
>
<
/Fragment
>
<
/Fragment
>
)}
)}
{
selectedTab
===
2
&&
(
{
selectedTab
===
2
&&
<
PublonsTable
isLatestVersion
&&
(
onInvite
=
{
onInvitePublonReviewer
}
<
PublonsTable
publonsError
=
{
fetchingError
}
onInvite
=
{
onInvitePublonReviewer
}
publonsFetching
=
{
isFetching
}
publonsError
=
{
fetchingError
}
reviewers
=
{
publonReviewers
}
publonsFetching
=
{
isFetching
}
/
>
reviewers
=
{
publonReviewers
}
)}
/
>
)}
{
selectedTab
===
1
&&
(
{
selectedTab
===
1
&&
(
<
Fragment
>
<
Fragment
>
{
reports
.
length
===
0
&&
(
{
reports
.
length
===
0
&&
(
...
...
This diff is collapsed.
Click to expand it.
packages/component-manuscript/src/components/utils.js
+
5
−
2
View file @
894e2a46
...
@@ -96,8 +96,11 @@ export const parseVersionOptions = (fragments = []) =>
...
@@ -96,8 +96,11 @@ export const parseVersionOptions = (fragments = []) =>
}))
}))
.
reverse
()
.
reverse
()
export
const
isLatestVersion
=
(
collection
,
fragment
)
=>
export
const
isLatestVersion
=
(
collection
,
fragment
)
=>
{
collection
.
fragments
.
indexOf
(
fragment
.
id
)
===
collection
.
fragments
.
length
-
1
const
fragments
=
get
(
collection
,
'
fragments
'
,
[])
const
id
=
get
(
fragment
,
'
id
'
,
''
)
return
fragments
.
indexOf
(
id
)
===
fragments
.
length
-
1
}
const
alreadyAnswered
=
`You have already answered this invitation.`
const
alreadyAnswered
=
`You have already answered this invitation.`
export
const
redirectToError
=
redirectFn
=>
err
=>
{
export
const
redirectToError
=
redirectFn
=>
err
=>
{
...
...
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