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-04-18 23:59:52 +0300
committerdartcafe <github@dartcafe.de>2021-04-18 23:59:52 +0300
commit43e516fd48128c94b045c83674fe5970e61cee2d (patch)
tree79b00434d26a6ed2157f04932e8052873b4b3728 /src/js/views
parent5ada3eaef1c0eda81d94a3fe26826313241d929d (diff)
arrow-parens
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/views')
-rw-r--r--src/js/views/Administration.vue2
-rw-r--r--src/js/views/PollList.vue8
-rw-r--r--src/js/views/Vote.vue8
3 files changed, 9 insertions, 9 deletions
diff --git a/src/js/views/Administration.vue b/src/js/views/Administration.vue
index af3f5204..3ce6326c 100644
--- a/src/js/views/Administration.vue
+++ b/src/js/views/Administration.vue
@@ -219,7 +219,7 @@ export default {
refreshView() {
window.document.title = t('polls', 'Polls') + ' - ' + this.title
- if (!this.filteredPolls(this.$route.params.type).find(poll => {
+ if (!this.filteredPolls(this.$route.params.type).find((poll) => {
return poll.id === this.$store.state.poll.id
})) {
emit('toggle-sidebar', { open: false })
diff --git a/src/js/views/PollList.vue b/src/js/views/PollList.vue
index ef63f223..252472f8 100644
--- a/src/js/views/PollList.vue
+++ b/src/js/views/PollList.vue
@@ -118,7 +118,7 @@ export default {
computed: {
...mapState({
- pollCategories: state => state.polls.categories,
+ pollCategories: (state) => state.polls.categories,
}),
...mapGetters({
@@ -126,13 +126,13 @@ export default {
}),
title() {
- return this.pollCategories.find(category => {
+ return this.pollCategories.find((category) => {
return (category.id === this.$route.params.type)
}).titleExt
},
description() {
- return this.pollCategories.find(category => {
+ return this.pollCategories.find((category) => {
return (category.id === this.$route.params.type)
}).description
},
@@ -181,7 +181,7 @@ export default {
refreshView() {
window.document.title = t('polls', 'Polls') + ' - ' + this.title
- if (!this.filteredPolls(this.$route.params.type).find(poll => {
+ if (!this.filteredPolls(this.$route.params.type).find((poll) => {
return poll.id === this.$store.state.poll.id
})) {
emit('toggle-sidebar', { open: false })
diff --git a/src/js/views/Vote.vue b/src/js/views/Vote.vue
index 6549544d..6ee023ef 100644
--- a/src/js/views/Vote.vue
+++ b/src/js/views/Vote.vue
@@ -108,10 +108,10 @@ export default {
computed: {
...mapState({
- poll: state => state.poll,
- acl: state => state.poll.acl,
- share: state => state.share,
- settings: state => state.settings,
+ poll: (state) => state.poll,
+ acl: (state) => state.poll.acl,
+ share: (state) => state.share,
+ settings: (state) => state.settings,
}),
...mapGetters({