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-02-28 01:16:51 +0300
committerdartcafe <github@dartcafe.de>2021-02-28 01:16:51 +0300
commit25df7307ee5374dc076b793177334bb4bd3a0287 (patch)
tree90fb3d167351ba2665829ee8fad09510a617ecd1 /src/js/views
parent9a7b8f7b4e41e1dd40d6e7e01939afeac00c25d8 (diff)
load poll list via long poll and remove timed polling
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/views')
-rw-r--r--src/js/views/Vote.vue9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/js/views/Vote.vue b/src/js/views/Vote.vue
index 0871dde5..fa5295d6 100644
--- a/src/js/views/Vote.vue
+++ b/src/js/views/Vote.vue
@@ -111,7 +111,6 @@ import PublicRegisterModal from '../components/Base/PublicRegisterModal'
import PublicEmail from '../components/Base/PublicEmail'
import Subscription from '../components/Subscription/Subscription'
import VoteTable from '../components/VoteTable/VoteTable'
-import { watchPolls } from '../mixins/watchPolls'
export default {
name: 'Vote',
@@ -131,19 +130,14 @@ export default {
VoteTable,
},
- mixins: [watchPolls],
-
data() {
return {
- cancelToken: null,
delay: 50,
isLoading: false,
manualViewDatePoll: '',
manualViewTextPoll: '',
ranked: false,
voteSaved: false,
- watching: true,
- lastUpdated: Math.round(Date.now() / 1000),
}
},
@@ -303,12 +297,9 @@ export default {
} else {
emit('toggle-sidebar', { open: (window.innerWidth > 920) })
}
- this.watchPolls()
},
beforeDestroy() {
- console.debug('destroy votes')
- this.cancelToken.cancel()
this.$store.dispatch({ type: 'poll/reset' })
},