diff options
author | dartcafe <github@dartcafe.de> | 2021-04-18 23:59:52 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-04-18 23:59:52 +0300 |
commit | 43e516fd48128c94b045c83674fe5970e61cee2d (patch) | |
tree | 79b00434d26a6ed2157f04932e8052873b4b3728 /src/js/views | |
parent | 5ada3eaef1c0eda81d94a3fe26826313241d929d (diff) |
arrow-parens
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/views')
-rw-r--r-- | src/js/views/Administration.vue | 2 | ||||
-rw-r--r-- | src/js/views/PollList.vue | 8 | ||||
-rw-r--r-- | src/js/views/Vote.vue | 8 |
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({ |