diff options
author | dartcafe <github@dartcafe.de> | 2020-05-27 19:52:05 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-05-27 19:52:05 +0300 |
commit | 410d21f09ec4b90028cbd2f10c479ba3e4c6d723 (patch) | |
tree | b7960d4b227e1f3887563093d8b573444fc7574e /src/js/components/Create | |
parent | 33b00ad3964cd55e8d7b9fbd9f43271500e7366a (diff) |
namespaced poll.js
Diffstat (limited to 'src/js/components/Create')
-rw-r--r-- | src/js/components/Create/CreateDlg.vue | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/js/components/Create/CreateDlg.vue b/src/js/components/Create/CreateDlg.vue index 83234e0c..10c387fd 100644 --- a/src/js/components/Create/CreateDlg.vue +++ b/src/js/components/Create/CreateDlg.vue @@ -92,9 +92,13 @@ export default { }, methods: { - ...mapMutations(['setPollProperty']), + ...mapMutations({ + setPollProperty: 'poll/setProperty', + }), - ...mapActions(['resetPoll']), + ...mapActions({ + resetPoll: 'poll/reset', + }), cancel() { this.title = '' @@ -107,7 +111,7 @@ export default { this.setPollProperty({ id: 0 }) this.setPollProperty({ title: this.title }) this.setPollProperty({ type: this.type }) - this.$store.dispatch('writePollPromise') + this.$store.dispatch('poll/write') .then(() => { emit('update-polls') this.cancel() |