Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-05-27 19:52:05 +0300
committerdartcafe <github@dartcafe.de>2020-05-27 19:52:05 +0300
commit410d21f09ec4b90028cbd2f10c479ba3e4c6d723 (patch)
treeb7960d4b227e1f3887563093d8b573444fc7574e /src/js/components/SideBar/SideBarTabConfiguration.vue
parent33b00ad3964cd55e8d7b9fbd9f43271500e7366a (diff)
namespaced poll.js
Diffstat (limited to 'src/js/components/SideBar/SideBarTabConfiguration.vue')
-rw-r--r--src/js/components/SideBar/SideBarTabConfiguration.vue9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/js/components/SideBar/SideBarTabConfiguration.vue b/src/js/components/SideBar/SideBarTabConfiguration.vue
index 1b651586..77cd208c 100644
--- a/src/js/components/SideBar/SideBarTabConfiguration.vue
+++ b/src/js/components/SideBar/SideBarTabConfiguration.vue
@@ -109,7 +109,7 @@
</template>
<script>
-import { mapState, mapMutations, mapActions } from 'vuex'
+import { mapState } from 'vuex'
import { DatetimePicker } from '@nextcloud/vue'
import { emit } from '@nextcloud/event-bus'
import ConfigBox from '../Base/ConfigBox'
@@ -268,15 +268,12 @@ export default {
},
methods: {
- ...mapMutations(['setPollProperty']),
- ...mapActions(['writePollPromise']),
-
writeValueDebounced: debounce(function(e) {
this.writeValue(e)
}, 1500),
writeValue(e) {
- this.$store.commit('setPollProperty', e)
+ this.$store.commit('poll/setProperty', e)
this.writingPoll = true
this.writePoll()
},
@@ -303,7 +300,7 @@ export default {
if (this.titleEmpty) {
OC.Notification.showTemporary(t('polls', 'Title must not be empty!'), { type: 'success' })
} else {
- this.$store.dispatch('writePollPromise')
+ this.$store.dispatch('poll/write')
.then(() => {
OC.Notification.showTemporary(t('polls', '%n successfully saved', 1, this.poll.title), { type: 'success' })
emit('update-polls')