From 32f7425b6278b520a879db9927bd865ac3eb6f68 Mon Sep 17 00:00:00 2001 From: anbebe Date: Tue, 3 Dec 2024 11:59:55 +0100 Subject: [PATCH] Add vote weights to election polls --- .../assignment-poll-detail.component.html | 1 + .../assignment-poll-detail/assignment-poll-detail.component.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-polls/components/assignment-poll-detail/assignment-poll-detail.component.html b/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-polls/components/assignment-poll-detail/assignment-poll-detail.component.html index 276074d182..85cf33ecc7 100644 --- a/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-polls/components/assignment-poll-detail/assignment-poll-detail.component.html +++ b/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-polls/components/assignment-poll-detail/assignment-poll-detail.component.html @@ -57,6 +57,7 @@

{{ poll.title }}

diff --git a/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-polls/components/assignment-poll-detail/assignment-poll-detail.component.ts b/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-polls/components/assignment-poll-detail/assignment-poll-detail.component.ts index a77b41f416..4b595ba83a 100644 --- a/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-polls/components/assignment-poll-detail/assignment-poll-detail.component.ts +++ b/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-polls/components/assignment-poll-detail/assignment-poll-detail.component.ts @@ -38,12 +38,15 @@ export class AssignmentPollDetailComponent return this.hasPerms() || this.poll.isPublished; } + public displayVoteWeight: boolean; + public constructor( pollService: AssignmentPollService, private pollDialog: AssignmentPollDialogService, pollPdfService: AssignmentPollPdfService ) { super(pollService, pollPdfService); + this.subscriptions.push(this.voteWeightEnabled.subscribe(data => (this.displayVoteWeight = data))); } public openDialog(poll: ViewPoll): void {