fix hide weight broadcast

shop
Raz 8 months ago
parent 4cbb9f0ddc
commit 530a60b0e1
  1. 1
      tournaments/templates/tournaments/broadcast/broadcasted_auto.html
  2. 1
      tournaments/templates/tournaments/broadcast/broadcasted_auto_event.html
  3. 6
      tournaments/templates/tournaments/broadcast/broadcasted_group_stage.html
  4. 1
      tournaments/templates/tournaments/broadcast/broadcasted_group_stages.html

@ -38,6 +38,7 @@
paginatedSummons: null,
paginatedRankings: null,
active: 1,
hide_weight: {{ tournament.hide_weight|lower }},
prefixTitle: '',
retrieveData() {
fetch('/tournament/{{ tournament.id }}/broadcast/json/')

@ -39,6 +39,7 @@
paginatedSummons: null,
paginatedRankings: null,
active: 1,
hide_weight: {{ tournament.hide_weight|lower }},
prefixTitle: '',
eventTitle: '',
title: '',

@ -31,9 +31,9 @@
<div class="flex-right">
<div x-show="group_stage.teams[i-1].match_count == 0">
{% if not tournament.hide_weight %}
<div class="score ws numbers"><span x-text="group_stage.teams[i-1].weight"></span></div>
{% endif %}
<div class="score ws numbers" x-show="hide_weight == false">
<span x-text="group_stage.teams[i-1].weight"></span>
</div>
</div>
<div x-show="group_stage.teams[i-1].match_count > 0">

@ -38,6 +38,7 @@
<body x-data="{
paginatedGroupStages: null,
active: 1,
hide_weight: {{ tournament.hide_weight|lower }},
retrieveMatches() {
fetch('/tournament/{{ tournament.id }}/group-stages/json/')
.then(res => res.json())

Loading…
Cancel
Save