From 43e516fd48128c94b045c83674fe5970e61cee2d Mon Sep 17 00:00:00 2001 From: dartcafe Date: Sun, 18 Apr 2021 22:59:52 +0200 Subject: arrow-parens Signed-off-by: dartcafe --- src/js/views/Administration.vue | 2 +- src/js/views/PollList.vue | 8 ++++---- src/js/views/Vote.vue | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/js/views') 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({ -- cgit v1.2.3