diff options
author | René Gieling <github@dartcafe.de> | 2020-04-04 09:55:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-04 09:55:48 +0300 |
commit | f3b72daad261c64c961c82821ceb069e96cb85eb (patch) | |
tree | 28dfb9174b06980aafbce0d34050cde4cac93a7c /src/js/components/PollList | |
parent | 258945a6edd900abd99bebf64acbf7ec94d6afb8 (diff) | |
parent | 682f307a82c7f26c6938151f6b9ea8a484548920 (diff) |
Merge branch 'master' into poll-filters
Diffstat (limited to 'src/js/components/PollList')
-rw-r--r-- | src/js/components/PollList/PollListItem.vue | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/js/components/PollList/PollListItem.vue b/src/js/components/PollList/PollListItem.vue index c3b3b49a..265ebd91 100644 --- a/src/js/components/PollList/PollListItem.vue +++ b/src/js/components/PollList/PollListItem.vue @@ -171,10 +171,6 @@ export default { this.openedMenu = !this.openedMenu }, - refreshPolls() { - this.$store.dispatch('loadPolls') - }, - hideMenu() { this.openedMenu = false }, @@ -182,7 +178,7 @@ export default { switchDeleted() { this.$store.dispatch('switchDeleted', { pollId: this.poll.id }) .then((response) => { - this.refreshPolls() + this.$root.$emit('updatePolls') }) this.hideMenu() }, @@ -190,7 +186,7 @@ export default { deletePermanently() { this.$store.dispatch('deletePermanently', { pollId: this.poll.id }) .then((response) => { - this.refreshPolls() + this.$root.$emit('updatePolls') }) this.hideMenu() }, @@ -198,7 +194,7 @@ export default { clonePoll() { this.$store.dispatch('clonePoll', { pollId: this.poll.id }) .then((response) => { - this.refreshPolls() + this.$root.$emit('updatePolls') }) this.hideMenu() } |