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, paginatedSummons: null,
paginatedRankings: null, paginatedRankings: null,
active: 1, active: 1,
hide_weight: {{ tournament.hide_weight|lower }},
prefixTitle: '', prefixTitle: '',
retrieveData() { retrieveData() {
fetch('/tournament/{{ tournament.id }}/broadcast/json/') fetch('/tournament/{{ tournament.id }}/broadcast/json/')

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

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

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

Loading…
Cancel
Save