Skip to content

Commit

Permalink
Added delegatedvote weight visible for canSeeParticipants (#4456)
Browse files Browse the repository at this point in the history
  • Loading branch information
anbebe authored Dec 6, 2024
1 parent 2d89c9c commit 420dde9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ <h2>{{ 'Participants' | translate }}</h2>
</div>
}
@if (!canSeeSensitiveData && showVoteWeight) {
<div class="user-subtitle">{{ 'Vote weight' | translate }}: {{ user.vote_weight() }}</div>
<div class="user-subtitle">
{{ 'Vote weight' | translate }}: {{ user.vote_weight() }}
@if (user.hasVoteRightFromOthers()) {
+ {{ sumOfDelegatedVoteWeight(user) }} {{ 'from delegated votes' | translate }}
}
</div>
}
</div>
<div class="icon-group">
Expand Down

0 comments on commit 420dde9

Please sign in to comment.