From b7866b0d71afd53cbf3ac857a205e43e0bdb91e7 Mon Sep 17 00:00:00 2001 From: rrenkert Date: Mon, 9 May 2022 16:37:42 +0200 Subject: [PATCH] Show vote count in dialog before sending votes. (#1053) --- .../assignment-poll-vote.component.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/app/site/pages/meetings/pages/assignments/modules/assignment-poll/components/assignment-poll-vote/assignment-poll-vote.component.ts b/client/src/app/site/pages/meetings/pages/assignments/modules/assignment-poll/components/assignment-poll-vote/assignment-poll-vote.component.ts index 6488817c7c..36f81cefd9 100644 --- a/client/src/app/site/pages/meetings/pages/assignments/modules/assignment-poll/components/assignment-poll-vote/assignment-poll-vote.component.ts +++ b/client/src/app/site/pages/meetings/pages/assignments/modules/assignment-poll/components/assignment-poll-vote/assignment-poll-vote.component.ts @@ -195,7 +195,13 @@ export class AssignmentPollVoteComponent extends BasePollVoteComponent 1 && !this.isGlobalOptionSelected()) { + content = + this.translate.instant(`Your votes`) + + `: ${this.getVotesCount()}/${this.poll.max_votes_amount}
` + + content; + } const confirmed = await this.promptService.open(title, content); if (confirmed) { this.deliveringVote[user.id] = true;