diff options
author | dartcafe <github@dartcafe.de> | 2020-05-27 21:26:31 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-05-27 21:26:31 +0300 |
commit | c85fe41a3ac46678d586cdf0a5cb2c39521473e5 (patch) | |
tree | 9b1a7b9a1d67cf912a2702e9b69065abcbb78ad5 /src/js/mixins | |
parent | 5bac39e29460819e8e890a05cb2f9da9e8beb8d7 (diff) |
namespaced options.js submodule
Diffstat (limited to 'src/js/mixins')
-rw-r--r-- | src/js/mixins/optionMixins.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/mixins/optionMixins.js b/src/js/mixins/optionMixins.js index 70e0ffc3..cb17dad4 100644 --- a/src/js/mixins/optionMixins.js +++ b/src/js/mixins/optionMixins.js @@ -1,14 +1,14 @@ export const confirmOption = { methods: { confirmOption(option) { - this.$store.dispatch('options/updateSingle', { option: { ...option, confirmed: !option.confirmed } }) + this.$store.dispatch('poll/options/update', { option: { ...option, confirmed: !option.confirmed } }) }, }, } export const removeOption = { removeOption(option) { - this.$store.dispatch('removeOptionAsync', { + this.$store.dispatch('poll/options/delete', { option: option, }) }, |