diff options
author | dartcafe <github@dartcafe.de> | 2020-05-27 18:55:27 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-05-27 18:55:27 +0300 |
commit | 33b00ad3964cd55e8d7b9fbd9f43271500e7366a (patch) | |
tree | 3764bf68c4f47a29d40247241bf46449f8c09c5e /src/js/components/PollList | |
parent | cb2e550d48fa96be9dbee141bdd95e078509ce69 (diff) |
namespaced polls.js
Diffstat (limited to 'src/js/components/PollList')
-rw-r--r-- | src/js/components/PollList/PollItem.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/components/PollList/PollItem.vue b/src/js/components/PollList/PollItem.vue index e809ce53..bdb636ec 100644 --- a/src/js/components/PollList/PollItem.vue +++ b/src/js/components/PollList/PollItem.vue @@ -203,7 +203,7 @@ export default { }, switchDeleted() { - this.$store.dispatch('switchDeleted', { pollId: this.poll.id }) + this.$store.dispatch('polls/switchDeleted', { pollId: this.poll.id }) .then((response) => { emit('update-polls') }) @@ -211,7 +211,7 @@ export default { }, deletePermanently() { - this.$store.dispatch('deletePermanently', { pollId: this.poll.id }) + this.$store.dispatch('polls/delete', { pollId: this.poll.id }) .then((response) => { emit('update-polls') }) @@ -219,7 +219,7 @@ export default { }, clonePoll() { - this.$store.dispatch('clonePoll', { pollId: this.poll.id }) + this.$store.dispatch('polls/clone', { pollId: this.poll.id }) .then((response) => { emit('update-polls') }) |