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>2021-09-16 00:59:26 +0300
committerdartcafe <github@dartcafe.de>2021-09-30 23:18:24 +0300
commit2e0a82bb23dbd583cc38016e9b7db5323a617c10 (patch)
treed70cec2f59222b335035eb7d7093c93ea9fd5cb5 /src/js/components/Create
parentbaa15317e930494d410cde2217083a0f1413dc6d (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.vue2
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 } })