Skip to content

Commit

Permalink
Add vote weights to election polls
Browse files Browse the repository at this point in the history
  • Loading branch information
anbebe committed Dec 3, 2024
1 parent 397eee9 commit 32f7425
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ <h1>{{ poll.title }}</h1>
</mat-tab>
<mat-tab label="{{ 'Entitled users' | translate }}">
<os-entitled-users-table
[displayVoteWeight]="displayVoteWeight"
[entitledUsersObservable]="entitledUsersObservable"
[isViewingThis]="isViewingEntitledUserslist"
></os-entitled-users-table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 32f7425

Please sign in to comment.