Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
8ea6a978
Unverified
Commit
8ea6a978
authored
Dec 14, 2018
by
Ray Schamp
Committed by
GitHub
Dec 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2488 from paulkaplan/change-comment-endpoint
Change the endpoint for loading single comments
parents
92ac2786
3c7b090a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/redux/preview.js
src/redux/preview.js
+1
-1
No files found.
src/redux/preview.js
View file @
8ea6a978
...
...
@@ -481,7 +481,7 @@ module.exports.getTopLevelComments = (id, offset, isAdmin, token) => (dispatch =
module
.
exports
.
getCommentById
=
(
projectId
,
commentId
,
isAdmin
,
token
)
=>
(
dispatch
=>
{
dispatch
(
module
.
exports
.
setFetchStatus
(
'
comments
'
,
module
.
exports
.
Status
.
FETCHING
));
api
({
uri
:
`
${
isAdmin
?
'
/admin
'
:
''
}
/projects/comments/
${
commentId
}
`
,
uri
:
`
${
isAdmin
?
'
/admin
'
:
''
}
/projects/
${
projectId
}
/
comments/
${
commentId
}
`
,
authentication
:
isAdmin
?
token
:
null
},
(
err
,
body
)
=>
{
if
(
err
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment