From b7a276d54ae88fde32cd1fba0ec4bb1ac41cab55 Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 21 May 2018 16:28:24 +0200 Subject: Support talentless modes --- src/TopTalentsBox.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/TopTalentsBox.vue') diff --git a/src/TopTalentsBox.vue b/src/TopTalentsBox.vue index eb73ef0..44a4e16 100644 --- a/src/TopTalentsBox.vue +++ b/src/TopTalentsBox.vue @@ -7,13 +7,17 @@ - +
{{ getTalentName(props.row.Talent) }}
+ + {{ Math.round(100 * playersPerMatch * props.row.Count / totalPicks) }}% + + {{ Math.round(100 * props.row.Winner) }}% @@ -42,6 +46,15 @@ export default Vue.component('top-talents-box', { top10Talents: function() { return this.reportService.getTop10Picks(this.selectedMode); }, + hasTalents: function() { + return maps.hasTalents(this.selectedMode); + }, + totalPicks: function() { + return this.reportService.getTotalPicks(this.selectedMode); + }, + playersPerMatch: function() { + return maps.playersPerMatch(this.selectedMode); + }, }, components: { TalentImage, -- cgit v1.3.1