added total wins to best mates and best map
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good

This commit is contained in:
2021-11-14 13:04:55 +01:00
parent 8a70b6c160
commit 3ce6b865c8

View File

@@ -249,6 +249,7 @@
</span>
<span class="end">
{{ (mate.win_rate * 100).toFixed(0) }} %
<span v-if="mate.total" class="total text-muted">({{ mate.total }})</span>
</span>
</li>
</ul>
@@ -285,6 +286,8 @@
</span>
<span class="end">
{{ (map[1] * 100).toFixed(0) }} %
<span v-if="data.playerMeta.total_maps[map[0]]"
class="total text-muted">({{ data.playerMeta.total_maps[map[0]] }})</span>
</span>
</li>
</ul>
@@ -496,7 +499,7 @@ export default {
const dmg = ref(0)
for (let i = 0; i <= 4; i++) {
weaponsContainer = document.querySelector('.dmg-chart-' + i)
weaponsContainer = document.querySelector('.dmplayerMetag-chart-' + i)
if (weaponsContainer !== null) {
if (i === 0) {
dmg100.value = weaponsContainer.innerHTML * 1
@@ -759,6 +762,20 @@ export default {
}
}
.best-map, .best-mate {
ul li {
.start {
width: 75%;
}
.end {
.total {
padding-left: 5px;
}
}
}
}
.preferred-weapons,
.best-map {
ul li {