diff options
author | dartcafe <github@dartcafe.de> | 2020-08-28 08:38:06 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-08-28 08:38:06 +0300 |
commit | 202fdc9380e159770d7a5ef49e2fefb45ecbc532 (patch) | |
tree | 98676487a5162cbde5b4700ab9f4c74528b17a25 /src | |
parent | 41307fc4c4635b902a4f602ad0516295d935b0a1 (diff) |
fix
Diffstat (limited to 'src')
-rw-r--r-- | src/js/components/VoteTable/VoteTable.vue | 2 | ||||
-rw-r--r-- | src/js/store/modules/subModules/votes.js | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/js/components/VoteTable/VoteTable.vue b/src/js/components/VoteTable/VoteTable.vue index caac448f..1bb7a182 100644 --- a/src/js/components/VoteTable/VoteTable.vue +++ b/src/js/components/VoteTable/VoteTable.vue @@ -158,7 +158,7 @@ export default { methods: { removeUser() { - this.$store.dispatch('poll/votes/delete', { + this.$store.dispatch('poll/votes/deleteUser', { userId: this.userToRemove, }) .then(() => { diff --git a/src/js/store/modules/subModules/votes.js b/src/js/store/modules/subModules/votes.js index 34f386ba..8a991659 100644 --- a/src/js/store/modules/subModules/votes.js +++ b/src/js/store/modules/subModules/votes.js @@ -117,7 +117,7 @@ const actions = { }) }, - delete(context, payload) { + deleteUser(context, payload) { const endPoint = 'apps/polls/votes/delete' return axios.post(generateUrl(endPoint), { pollId: context.rootState.poll.id, @@ -125,7 +125,6 @@ const actions = { }) .then(() => { context.commit('deleteVotes', payload) - OC.Notification.showTemporary(t('polls', 'User {userId} removed', payload), { type: 'success' }) }) .catch((error) => { console.error('Error deleting votes', { error: error.response }, { payload: payload }) |