Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a0b0a561
Commit
a0b0a561
authored
Jul 30, 2020
by
Savas Vedova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the endpoint provided by the backend
parent
6b120d08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
ee/app/assets/javascripts/vulnerabilities/components/history_comment.vue
...avascripts/vulnerabilities/components/history_comment.vue
+2
-6
No files found.
ee/app/assets/javascripts/vulnerabilities/components/history_comment.vue
View file @
a0b0a561
...
...
@@ -4,7 +4,6 @@ import createFlash from '~/flash';
import
EventItem
from
'
ee/vue_shared/security_reports/components/event_item.vue
'
;
import
{
__
,
s__
}
from
'
~/locale
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
joinPaths
}
from
'
~/lib/utils/url_utility
'
;
import
HistoryCommentEditor
from
'
./history_comment_editor.vue
'
;
export
default
{
...
...
@@ -43,9 +42,6 @@ export default {
},
computed
:
{
noteIdUrl
()
{
return
joinPaths
(
this
.
notesUrl
,
this
.
comment
.
id
);
},
commentNote
()
{
return
this
.
comment
?.
note
;
},
...
...
@@ -72,7 +68,7 @@ export default {
getSaveConfig
(
note
)
{
const
isUpdatingComment
=
Boolean
(
this
.
comment
);
const
method
=
isUpdatingComment
?
'
put
'
:
'
post
'
;
const
url
=
isUpdatingComment
?
this
.
noteIdUrl
:
this
.
notesUrl
;
const
url
=
isUpdatingComment
?
this
.
comment
.
path
:
this
.
notesUrl
;
const
data
=
{
note
:
{
note
}
};
const
emitName
=
isUpdatingComment
?
'
onCommentUpdated
'
:
'
onCommentAdded
'
;
...
...
@@ -105,7 +101,7 @@ export default {
},
deleteComment
()
{
this
.
isDeletingComment
=
true
;
const
deleteUrl
=
this
.
noteIdUrl
;
const
deleteUrl
=
this
.
comment
.
path
;
axios
.
delete
(
deleteUrl
)
...
...
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