diff options
author | dartcafe <github@dartcafe.de> | 2020-05-02 10:00:29 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-05-02 10:00:29 +0300 |
commit | 78471e1df3112bd5e1312d661bd4d44c4d5c4985 (patch) | |
tree | 2da75af3365b065b8c8bc479633a084a28d6aefe /src/js/components/Create | |
parent | 90bbbc070623c581602845dceed6b726a2a46806 (diff) |
use @nextcloud/event-bus
Diffstat (limited to 'src/js/components/Create')
-rw-r--r-- | src/js/components/Create/CreateDlg.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/components/Create/CreateDlg.vue b/src/js/components/Create/CreateDlg.vue index e8db06e4..3d943c2a 100644 --- a/src/js/components/Create/CreateDlg.vue +++ b/src/js/components/Create/CreateDlg.vue @@ -55,6 +55,7 @@ <script> import { mapState, mapMutations } from 'vuex' +import { emit } from '@nextcloud/event-bus' export default { name: 'CreateDlg', @@ -93,7 +94,7 @@ export default { this.setPollProperty({ type: this.type }) this.$store.dispatch('writePollPromise') .then(() => { - this.$root.$emit('updatePolls') + emit('update-polls') this.cancel() OC.Notification.showTemporary(t('polls', 'Poll "%n" added', 1, this.poll.title), { type: 'success' }) this.$router.push({ name: 'vote', params: { id: this.poll.id } }) |