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
f160f857
Commit
f160f857
authored
6 years ago
by
Anca Ursachi
Browse files
Options
Downloads
Patches
Plain Diff
fix(utilis(helpers)): Change error messages.
parent
a8d8fe3d
No related branches found
No related tags found
3 merge requests
!176
Sprint 24
,
!171
Sprint 24
,
!168
Hin 845 revoke and assign he fix
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/component-faraday-ui/src/PersonInvitation.js
+1
-1
1 addition, 1 deletion
packages/component-faraday-ui/src/PersonInvitation.js
packages/component-faraday-ui/src/helpers/utils.js
+11
-1
11 additions, 1 deletion
packages/component-faraday-ui/src/helpers/utils.js
with
12 additions
and
2 deletions
packages/component-faraday-ui/src/PersonInvitation.js
+
1
−
1
View file @
f160f857
...
@@ -66,7 +66,7 @@ const PersonInvitation = ({
...
@@ -66,7 +66,7 @@ const PersonInvitation = ({
isFetching
=
{
isFetching
}
isFetching
=
{
isFetching
}
modalKey
=
{
`remove-
${
id
}
`
}
modalKey
=
{
`remove-
${
id
}
`
}
onConfirm
=
{
revokeInvitation
}
onConfirm
=
{
revokeInvitation
}
subtitle
=
{
`Are you sure you want to remove
${
email
}
? This decision will erase all data from the current fragment.`
}
subtitle
=
"
Deleting the handling editor at this moment will also remove all his work.
"
title
=
"
Revoke invitation?
"
title
=
"
Revoke invitation?
"
>
>
{
showModal
=>
(
{
showModal
=>
(
...
...
This diff is collapsed.
Click to expand it.
packages/component-faraday-ui/src/helpers/utils.js
+
11
−
1
View file @
f160f857
import
{
get
,
chain
,
find
}
from
'
lodash
'
import
{
get
,
chain
,
find
}
from
'
lodash
'
export
const
handleError
=
fn
=>
e
=>
{
export
const
handleError
=
fn
=>
e
=>
{
fn
(
get
(
JSON
.
parse
(
e
.
response
),
'
error
'
,
'
Oops! Something went wrong!
'
))
const
errorForAuthorWhenHEWasRevoked
=
'
Your Handling Editor was changed. A new handling editor will be assigned to your manuscript soon. Sorry for the inconvenience.
'
let
error
=
get
(
JSON
.
parse
(
e
.
response
),
'
error
'
,
'
Oops! Something went wrong!
'
,
)
if
(
error
===
'
No revision has been found.
'
)
{
error
=
errorForAuthorWhenHEWasRevoked
}
fn
(
error
)
}
}
export
const
getReportComments
=
({
report
,
isPublic
=
false
})
=>
export
const
getReportComments
=
({
report
,
isPublic
=
false
})
=>
...
...
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