Remove toggleAward from notes service
This commit is contained in:
parent
f39b783385
commit
560d8bcc59
3 changed files with 8 additions and 9 deletions
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
|
@ -384,10 +384,7 @@ 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 })
|
|
||||||
.then(res => res.json())
|
|
||||||
.then(() => {
|
|
||||||
dispatch('toggleAward', data);
|
dispatch('toggleAward', data);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
5
changelogs/unreleased/winh-notes-service-toggleAward.yml
Normal file
5
changelogs/unreleased/winh-notes-service-toggleAward.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Remove toggleAward from notes service
|
||||||
|
merge_request: 30536
|
||||||
|
author: Frank van Rest
|
||||||
|
type: other
|
Loading…
Reference in a new issue