summaryrefslogtreecommitdiff
path: root/src/HeroTalentTable.vue
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2018-05-30 20:12:01 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2018-12-13 17:09:09 +0100
commitb09d7a9f73e9b28425326227ce8fc4c3b72fb14d (patch)
tree82a274cac4d8eee2c7e41c0a626a1ce63241946d /src/HeroTalentTable.vue
parent9bca0c543a8a3d5fae1efd0a5d36ef8d1f517d6b (diff)
downloadbrokentalents-b09d7a9f73e9b28425326227ce8fc4c3b72fb14d.tar.gz
brokentalents-b09d7a9f73e9b28425326227ce8fc4c3b72fb14d.zip
Big Routing/Tabbing/ReportService refactor, add ad blocks
Diffstat (limited to 'src/HeroTalentTable.vue')
-rw-r--r--src/HeroTalentTable.vue10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/HeroTalentTable.vue b/src/HeroTalentTable.vue
index 87d6f50..0e4509b 100644
--- a/src/HeroTalentTable.vue
+++ b/src/HeroTalentTable.vue
@@ -1,7 +1,6 @@
<template>
<div class="box">
<div style="display: flex; align-items: center; justify-content: space-between;">
- <h3 class="title is-3">{{ getHero(selectedActor) }}</h3>
<hero-image :actor="selectedActor" class="is-64x64"></hero-image>
</div>
@@ -30,24 +29,23 @@
import Vue from 'vue';
import TalentImage from './TalentImage.vue';
import HeroImage from './HeroImage.vue';
-import RouterParamMixin from './RouterParamMixin.js';
+import RouterParamMixin from './RouterParamMixin';
+import ReportService from './ReportService';
import * as maps from './maps/maps';
export default Vue.component('hero-talent-table', {
- props: [ 'reportService' ],
mixins: [ RouterParamMixin ],
data: function() {
return {
- getHero: maps.getHero,
getTalentName: maps.getTalentName,
};
},
computed: {
totalPicks: function() {
- return this.reportService.getTotalPicks(this.selectedMode);
+ return ReportService.getTotalPicks(this.selectedMode);
},
heroReport: function() {
- return this.reportService.getReport(this.selectedMode)
+ return ReportService.getReport(this.selectedMode)
.filter((entry) => entry.Actor == this.selectedActor);
},
totalHeroPicks: function() {