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-03-15 21:34:17 +0300
committerdartcafe <github@dartcafe.de>2020-03-15 21:34:17 +0300
commit0bd7aa0d56ee0003cdf0fc7d32097d5a01a84a4f (patch)
treefc2f15334722b04c29878b28aab118ff5a4ff5f2 /src/js/components/PollList
parent80187f5e20ecb046b5ae8e7cd9cff6a851004aa2 (diff)
removed duplication of poll list loading
Diffstat (limited to 'src/js/components/PollList')
-rw-r--r--src/js/components/PollList/PollListItem.vue10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/js/components/PollList/PollListItem.vue b/src/js/components/PollList/PollListItem.vue
index 505a96e0..2e67a037 100644
--- a/src/js/components/PollList/PollListItem.vue
+++ b/src/js/components/PollList/PollListItem.vue
@@ -172,10 +172,6 @@ export default {
this.openedMenu = !this.openedMenu
},
- refreshPolls() {
- this.$store.dispatch('loadPolls')
- },
-
hideMenu() {
this.openedMenu = false
},
@@ -183,7 +179,7 @@ export default {
switchDeleted() {
this.$store.dispatch('switchDeleted', { pollId: this.poll.id })
.then((response) => {
- this.refreshPolls()
+ this.$root.$emit('updatePolls')
})
this.hideMenu()
},
@@ -191,7 +187,7 @@ export default {
deletePermanently() {
this.$store.dispatch('deletePermanently', { pollId: this.poll.id })
.then((response) => {
- this.refreshPolls()
+ this.$root.$emit('updatePolls')
})
this.hideMenu()
},
@@ -199,7 +195,7 @@ export default {
clonePoll() {
this.$store.dispatch('clonePoll', { pollId: this.poll.id })
.then((response) => {
- this.refreshPolls()
+ this.$root.$emit('updatePolls')
})
this.hideMenu()
}