From ae2e2da7b6738d0cc3ed862dceb7cb2a50c0e1f3 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Thu, 3 Jun 2021 19:42:17 +0200 Subject: hide table if too many cells are used Signed-off-by: dartcafe --- .../components/Actions/ActionCopyMailAdresses.vue | 4 +- src/js/components/Poll/ParticipantsList.vue | 7 ++- src/js/components/Poll/PollInformation.vue | 6 +- src/js/components/VoteTable/VoteTable.vue | 2 +- src/js/store/modules/poll.js | 67 +++++++++++++++------- src/js/store/modules/votes.js | 16 +++++- src/js/views/Vote.vue | 8 +++ 7 files changed, 77 insertions(+), 33 deletions(-) (limited to 'src/js') diff --git a/src/js/components/Actions/ActionCopyMailAdresses.vue b/src/js/components/Actions/ActionCopyMailAdresses.vue index 1743f0c1..e8cc8fba 100644 --- a/src/js/components/Actions/ActionCopyMailAdresses.vue +++ b/src/js/components/Actions/ActionCopyMailAdresses.vue @@ -65,11 +65,11 @@ export default { computed: { ...mapGetters({ - participantsVoted: 'poll/participantsVoted', + countParticipantsVoted: 'poll/countParticipantsVoted', }), caption() { - return n('polls', '%n Participant', '%n Participants', this.participantsVoted.length) + return n('polls', '%n Participant', '%n Participants', this.countParticipantsVoted) }, }, methods: { diff --git a/src/js/components/Poll/ParticipantsList.vue b/src/js/components/Poll/ParticipantsList.vue index 8bbaf40d..7d5c28e5 100644 --- a/src/js/components/Poll/ParticipantsList.vue +++ b/src/js/components/Poll/ParticipantsList.vue @@ -22,13 +22,13 @@