Skip to content

Commit

Permalink
wrap entry-list vote elements in frament
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Jan 31, 2024
1 parent d496dc5 commit 9d85352
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions resources/js/contest-voting/entry-list.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ export class EntryList extends BaseEntryList
div className: 'contest-voting-list__header-wrapper',
div className: 'contest-voting-list__header-title', trans('contest.entry._')
if !@state.contest.judged
div className: 'contest-voting-list__header-voted-toggle-button',
@renderToggleShowVotedOnly()
div className: 'contest-voting-list__header-votesummary',
div className: 'contest__vote-summary-text', trans('contest.vote.list')
el VoteSummary, voteCount: @state.selected.length, maxVotes: @state.contest.max_votes
el React.Fragment, null,
div className: 'contest-voting-list__header-voted-toggle-button',
@renderToggleShowVotedOnly()
div className: 'contest-voting-list__header-votesummary',
div className: 'contest__vote-summary-text', trans('contest.vote.list')
el VoteSummary, voteCount: @state.selected.length, maxVotes: @state.contest.max_votes
div {}, entries

0 comments on commit 9d85352

Please sign in to comment.