diff options
author | dartcafe <github@dartcafe.de> | 2020-05-06 11:25:38 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-05-06 11:25:38 +0300 |
commit | b2ac80dc58ab1b38c5d5133b1a10dcec6e76ae44 (patch) | |
tree | a8805c9f5abf34d9b4e00a69013d52bb1186425f /src/js/components/Create | |
parent | cc7bc8f8e2e72ab9e35ba3b2ef76851f9fddd0a8 (diff) |
fixes and layout
Diffstat (limited to 'src/js/components/Create')
-rw-r--r-- | src/js/components/Create/CreateDlg.vue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/js/components/Create/CreateDlg.vue b/src/js/components/Create/CreateDlg.vue index 3d943c2a..1020d591 100644 --- a/src/js/components/Create/CreateDlg.vue +++ b/src/js/components/Create/CreateDlg.vue @@ -54,7 +54,7 @@ </template> <script> -import { mapState, mapMutations } from 'vuex' +import { mapState, mapMutations, mapActions } from 'vuex' import { emit } from '@nextcloud/event-bus' export default { name: 'CreateDlg', @@ -78,7 +78,9 @@ export default { }, methods: { - ...mapMutations(['setPollProperty', 'resetPoll', 'reset']), + ...mapMutations(['setPollProperty']), + + ...mapActions(['resetPoll']), cancel() { this.title = '' @@ -88,7 +90,6 @@ export default { confirm() { this.resetPoll() - this.reset() this.setPollProperty({ id: 0 }) this.setPollProperty({ title: this.title }) this.setPollProperty({ type: this.type }) |