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
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
Hide 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 {
...
@@ -38,9 +38,6 @@ export default {
return
Vue
.
http
.
get
(
endpoint
,
options
);
return
Vue
.
http
.
get
(
endpoint
,
options
);
},
},
toggleAward
(
endpoint
,
data
)
{
return
Vue
.
http
.
post
(
endpoint
,
data
,
{
emulateJSON
:
true
});
},
toggleIssueState
(
endpoint
,
data
)
{
toggleIssueState
(
endpoint
,
data
)
{
return
Vue
.
http
.
put
(
endpoint
,
data
);
return
Vue
.
http
.
put
(
endpoint
,
data
);
},
},
...
...
app/assets/javascripts/notes/stores/actions.js
View file @
560d8bcc
...
@@ -384,12 +384,9 @@ export const toggleAward = ({ commit, getters }, { awardName, noteId }) => {
...
@@ -384,12 +384,9 @@ export const toggleAward = ({ commit, getters }, { awardName, noteId }) => {
export
const
toggleAwardRequest
=
({
dispatch
},
data
)
=>
{
export
const
toggleAwardRequest
=
({
dispatch
},
data
)
=>
{
const
{
endpoint
,
awardName
}
=
data
;
const
{
endpoint
,
awardName
}
=
data
;
return
service
return
axios
.
post
(
endpoint
,
{
name
:
awardName
}).
then
(()
=>
{
.
toggleAward
(
endpoint
,
{
name
:
awardName
})
dispatch
(
'
toggleAward
'
,
data
);
.
then
(
res
=>
res
.
json
())
});
.
then
(()
=>
{
dispatch
(
'
toggleAward
'
,
data
);
});
};
};
export
const
scrollToNoteIfNeeded
=
(
context
,
el
)
=>
{
export
const
scrollToNoteIfNeeded
=
(
context
,
el
)
=>
{
...
...
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