diff options
author | dartcafe <github@dartcafe.de> | 2020-05-26 00:23:38 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-05-26 00:23:38 +0300 |
commit | 2396f8326ca2f9d1b2320e6381e26981b902586b (patch) | |
tree | 0c0376a7a07add9d0d88211457e224aadfe077ec /src/js/mixins | |
parent | 6d2ab18f29789890e90aabd31d68bda46a1ad7da (diff) |
Confirmation optimizations
Diffstat (limited to 'src/js/mixins')
-rw-r--r-- | src/js/mixins/optionMixins.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/js/mixins/optionMixins.js b/src/js/mixins/optionMixins.js new file mode 100644 index 00000000..4cc160cd --- /dev/null +++ b/src/js/mixins/optionMixins.js @@ -0,0 +1,15 @@ +export const confirmOption = { + methods: { + confirmOption(option) { + this.$store.dispatch('updateOptionAsync', { option: { ...option, confirmed: !option.confirmed } }) + }, + }, +} + +export const removeOption = { + removeOption(option) { + this.$store.dispatch('removeOptionAsync', { + option: option, + }) + }, +} |