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:
authortiller <no-reply@tiller.fr>2022-10-26 11:23:11 +0300
committertiller <no-reply@tiller.fr>2022-10-26 11:39:46 +0300
commitfc0e35862e7c025100f1f0208465abecb1effebc (patch)
tree6ca0b6611c72da76a8b69fc02e0552ceadd03ba8
parent6dad1a638fb95468f81eaf23f8df3fb32e965899 (diff)
Fix eslinting for good
Signed-off-by: tiller <no-reply@tiller.fr>
-rw-r--r--src/js/views/Dashboard.vue22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/js/views/Dashboard.vue b/src/js/views/Dashboard.vue
index c47a4eba..4ad6193c 100644
--- a/src/js/views/Dashboard.vue
+++ b/src/js/views/Dashboard.vue
@@ -1,6 +1,6 @@
<!--
- @copyright Copyright (c) 2022 Michael Longo <contact@tiller.fr>
- -
+ -
- @author Michael Longo <contact@tiller.fr>
-
- @license GNU AGPL version 3 or any later version
@@ -20,7 +20,7 @@
-
-->
- <template>
+<template>
<div>
<NcDashboardWidget :items="relevantPolls"
empty-content-icon="icon-polls"
@@ -54,8 +54,8 @@
</template>
<script>
-import PlusIcon from 'vue-material-design-icons/Plus.vue'
-import { NcButton, NcDashboardWidget } from '@nextcloud/vue'
+import { NcDashboardWidget } from '@nextcloud/vue'
+import { showError } from '@nextcloud/dialogs'
import TextPollIcon from 'vue-material-design-icons/FormatListBulletedSquare.vue'
import DatePollIcon from 'vue-material-design-icons/CalendarBlank.vue'
import { mapGetters } from 'vuex'
@@ -67,9 +67,6 @@ export default {
NcDashboardWidget,
TextPollIcon,
DatePollIcon,
- NcButton,
- PlusIcon,
- PollItem: () => import('../components/PollList/PollItem.vue'),
},
data() {
return {
@@ -78,8 +75,8 @@ export default {
},
computed: {
...mapGetters({
- filteredPolls: 'polls/filtered',
- }),
+ filteredPolls: 'polls/filtered',
+ }),
relevantPolls() {
const list = [
...this.filteredPolls('relevant'),
@@ -87,15 +84,16 @@ export default {
return list.slice(0, 6)
},
pollLink() {
- return (card) => {
- return generateUrl(`/apps/polls/vote/${card.id}`)
- }
+ return (card) => generateUrl(`/apps/polls/vote/${card.id}`)
},
},
beforeMount() {
this.loading = true
this.$store.dispatch('polls/list').then(() => {
this.loading = false
+ return null
+ }).catch(() => {
+ showError(t('polls', 'Error loading poll list'))
})
},
}