From ee07e8f0cec8f8c41a838709b98569e14ff2a6a0 Mon Sep 17 00:00:00 2001 From: Sean Date: Tue, 17 Mar 2020 18:38:35 +0100 Subject: [PATCH] Various small fixes - Fix an issue in motion PDF which affected motion result percent values - Fix an issue where the voting result bar chart hat a chance to show "null" - Change the available votes display to count down instead of up - Add the correct button class to the global abstain button - Add some translatable strings --- .../app/shared/pipes/poll-key-verbose.pipe.ts | 4 ++-- .../assignment-poll-vote.component.html | 11 +++++++---- .../assignment-poll-vote.component.ts | 4 ++++ .../motions/services/motion-pdf.service.ts | 10 +++++----- .../app/site/polls/services/poll.service.ts | 19 ++++++++++++++----- 5 files changed, 32 insertions(+), 16 deletions(-) diff --git a/client/src/app/shared/pipes/poll-key-verbose.pipe.ts b/client/src/app/shared/pipes/poll-key-verbose.pipe.ts index ed71000b3..3a4c7cf48 100644 --- a/client/src/app/shared/pipes/poll-key-verbose.pipe.ts +++ b/client/src/app/shared/pipes/poll-key-verbose.pipe.ts @@ -9,8 +9,8 @@ const PollValues = { yes: 'Yes', no: 'No', abstain: 'Abstain', - amount_global_abstain: 'General abstain', - amount_global_no: 'General no' + amount_global_abstain: 'General Abstain', + amount_global_no: 'General No' }; /** diff --git a/client/src/app/site/assignments/components/assignment-poll-vote/assignment-poll-vote.component.html b/client/src/app/site/assignments/components/assignment-poll-vote/assignment-poll-vote.component.html index 7534b3d4c..d43106454 100644 --- a/client/src/app/site/assignments/components/assignment-poll-vote/assignment-poll-vote.component.html +++ b/client/src/app/site/assignments/components/assignment-poll-vote/assignment-poll-vote.component.html @@ -6,10 +6,12 @@

-

- {{ 'Available votes' | translate }}: {{ getVotesCount() }}/{{ poll.votes_amount }} +

+ {{ 'Available votes' | translate }}: + + + {{ getVotesAvailable() }}/{{ poll.votes_amount }} +

@@ -75,6 +77,7 @@