Skip to content

Commit b62eeec

Browse files
committed
Fixed issue where tournament match table would not show matches
1 parent 1eefec0 commit b62eeec

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/components/matches-table/matches-table.marko

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ var columns = state.columns;
2-
<div class="block-container no-padding">
2+
<div no-update-body-if(input.no_update) class="block-container no-padding">
33
<div class="table table-responsive">
44
<table class="table-matches-list">
55
<thead>

src/pages/leaderboard/components/leaderboard/leaderboard.marko

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ let weeks_str = input.defaults.leaderboard_active_period_weeks == 1 ? `week` : `${input.defaults.leaderboard_active_period_weeks} weeks`;
2-
<page-header heading="Leaderboard" subheading=`Top players based on last ${input.defaults.leaderboard_last_legs_count} legs, having played in the past ${weeks_str}` icon="fa-medal"/>
2+
<page-header heading="Leaderboard" subheading=`Top players by Three Dart Avg based on last ${input.defaults.leaderboard_last_legs_count} legs, having played in the past ${weeks_str}` icon="fa-medal"/>
33
<div class="block-container no-padding">
44
<office-selector offices=input.offices clazz="float-right" on-office-changed("officeChanged")/>
55
<div class="block-container no-padding">

src/pages/tournament/components/tournament/tournament.component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = {
6666
$('#set-score-modal').data('matchId', matchId);
6767
$('#set-score-modal').modal('toggle');
6868
}
69-
</script>`)
69+
</script>`);
7070

7171
$(function () {
7272
$('.table-matches-list').DataTable({

src/pages/tournament/components/tournament/tournament.marko

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ $ {
6060
}
6161
}
6262
<div role="tabpanel" id=`matches-${group[0].tournament_group.id}` class="tab-pane">
63-
<matches-table players=input.players matches=state.matches[id] columns=columns on-show-modal("onShowModal") />
63+
<matches-table players=input.players matches=state.matches[id] no_update=true columns=columns on-show-modal("onShowModal") />
6464
</div>
6565
<div role="tabpanel" id=`unplayed-matches-${group[0].tournament_group.id}` class="tab-pane">
66-
<matches-table players=input.players matches=state.unplayed[id] columns=columns on-show-modal("onShowModal") />
66+
<matches-table players=input.players matches=state.unplayed[id] no_update=true columns=columns on-show-modal("onShowModal") />
6767
</div>
6868
<div role="tabpanel" id=`predictor-${group[0].tournament_group.id}` class="tab-pane">
6969
<tournament-overview-table tournament=input.tournament players=input.players statistics=input.statistics overview=group key=`predictor-overview-${group[0].tournament_group.id}`/>

0 commit comments

Comments
 (0)