From 10c7afee60739372783dba06535408c20d58ce48 Mon Sep 17 00:00:00 2001 From: Tyler Date: Tue, 15 May 2018 10:24:29 -0700 Subject: [PATCH] Adding abstain to approval voting. --- ui/src/app/components/candidate/candidate.component.html | 5 +++-- ui/src/app/components/candidate/candidate.component.ts | 4 ---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ui/src/app/components/candidate/candidate.component.html b/ui/src/app/components/candidate/candidate.component.html index aac2ecb..0d00c64 100755 --- a/ui/src/app/components/candidate/candidate.component.html +++ b/ui/src/app/components/candidate/candidate.component.html @@ -4,8 +4,7 @@ Untitled candidate Your Vote: {{vote / 10}} | - Your Vote: {{vote}} | - Your Vote: {{approvalVoteToThumb()}} + Your Vote: {{vote / 10}} | Score: {{voteAvg(1)}} | Score: {{candidate.avg_score.toFixed(1)}} | Score: Too Few Votes | @@ -28,6 +27,8 @@
+
diff --git a/ui/src/app/components/candidate/candidate.component.ts b/ui/src/app/components/candidate/candidate.component.ts index 485ff6b..b2c1dfe 100755 --- a/ui/src/app/components/candidate/candidate.component.ts +++ b/ui/src/app/components/candidate/candidate.component.ts @@ -117,10 +117,6 @@ export class CandidateComponent implements OnInit { return (this.candidate.votes) ? this.candidate.votes.length.toString() : '0'; } - approvalVoteToThumb(): string { - return (this.vote == 100) ? "👍" : "👎"; - } - voteExists(): boolean { return this.vote !== undefined && this.vote !== null; }