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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
560d8bcc
Commit
560d8bcc
authored
Jul 10, 2019
by
Winnie Hellmann
Committed by
Kushal Pandya
Jul 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove toggleAward from notes service
parent
f39b7833
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
app/assets/javascripts/notes/services/notes_service.js
app/assets/javascripts/notes/services/notes_service.js
+0
-3
app/assets/javascripts/notes/stores/actions.js
app/assets/javascripts/notes/stores/actions.js
+3
-6
changelogs/unreleased/winh-notes-service-toggleAward.yml
changelogs/unreleased/winh-notes-service-toggleAward.yml
+5
-0
No files found.
app/assets/javascripts/notes/services/notes_service.js
View file @
560d8bcc
...
...
@@ -38,9 +38,6 @@ export default {
return
Vue
.
http
.
get
(
endpoint
,
options
);
},
toggleAward
(
endpoint
,
data
)
{
return
Vue
.
http
.
post
(
endpoint
,
data
,
{
emulateJSON
:
true
});
},
toggleIssueState
(
endpoint
,
data
)
{
return
Vue
.
http
.
put
(
endpoint
,
data
);
},
...
...
app/assets/javascripts/notes/stores/actions.js
View file @
560d8bcc
...
...
@@ -384,10 +384,7 @@ export const toggleAward = ({ commit, getters }, { awardName, noteId }) => {
export
const
toggleAwardRequest
=
({
dispatch
},
data
)
=>
{
const
{
endpoint
,
awardName
}
=
data
;
return
service
.
toggleAward
(
endpoint
,
{
name
:
awardName
})
.
then
(
res
=>
res
.
json
())
.
then
(()
=>
{
return
axios
.
post
(
endpoint
,
{
name
:
awardName
}).
then
(()
=>
{
dispatch
(
'
toggleAward
'
,
data
);
});
};
...
...
changelogs/unreleased/winh-notes-service-toggleAward.yml
0 → 100644
View file @
560d8bcc
---
title
:
Remove toggleAward from notes service
merge_request
:
30536
author
:
Frank van Rest
type
:
other
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