diff options
author | dartcafe <github@dartcafe.de> | 2021-09-16 00:59:26 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-09-30 23:18:24 +0300 |
commit | 2e0a82bb23dbd583cc38016e9b7db5323a617c10 (patch) | |
tree | d70cec2f59222b335035eb7d7093c93ea9fd5cb5 /src/js/components/Create | |
parent | baa15317e930494d410cde2217083a0f1413dc6d (diff) |
refactor watchPolls
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/Create')
-rw-r--r-- | src/js/components/Create/CreateDlg.vue | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/js/components/Create/CreateDlg.vue b/src/js/components/Create/CreateDlg.vue index e6963bff..54da3f81 100644 --- a/src/js/components/Create/CreateDlg.vue +++ b/src/js/components/Create/CreateDlg.vue @@ -49,7 +49,6 @@ <script> import { mapState } from 'vuex' import { showSuccess, showError } from '@nextcloud/dialogs' -import { emit } from '@nextcloud/event-bus' import ConfigBox from '../Base/ConfigBox' import RadioGroupDiv from '../Base/RadioGroupDiv' @@ -93,7 +92,6 @@ export default { async confirm() { try { const response = await this.$store.dispatch('poll/add', { title: this.title, type: this.pollType }) - emit('update-polls') this.cancel() showSuccess(t('polls', 'Poll "{pollTitle}" added', { pollTitle: response.data.title })) this.$router.push({ name: 'vote', params: { id: response.data.id } }) |