diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-05-21 15:55:52 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-12-13 16:59:35 +0100 |
| commit | ec8b0c51f872d2972a3deb6d6a836b9d9fd30141 (patch) | |
| tree | 516e9817b3eedd44540d1283a3443022c3153417 /src/TopTalentsBox.vue | |
| parent | 65d101fadd83c0b22e2285dc4e9825962c29cca0 (diff) | |
| download | brokentalents-ec8b0c51f872d2972a3deb6d6a836b9d9fd30141.tar.gz brokentalents-ec8b0c51f872d2972a3deb6d6a836b9d9fd30141.zip | |
Move query get/set into mixin
Diffstat (limited to 'src/TopTalentsBox.vue')
| -rw-r--r-- | src/TopTalentsBox.vue | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/TopTalentsBox.vue b/src/TopTalentsBox.vue index e0e7cfb..e84b366 100644 --- a/src/TopTalentsBox.vue +++ b/src/TopTalentsBox.vue @@ -30,10 +30,12 @@ import Vue from 'vue'; import TalentImage from './TalentImage.vue'; import HeroImage from './HeroImage.vue'; +import RouterParamMixin from './RouterParamMixin.js'; import * as maps from './maps/maps'; export default Vue.component('hero-search-box', { props: [ 'reportService' ], + mixins: [ RouterParamMixin ], data: function() { return { getHero: maps.getHero, @@ -41,17 +43,9 @@ export default Vue.component('hero-search-box', { }; }, computed: { - selectedMode: { - get: function() { - return this.$route.query.mode; - }, - }, top10Talents: function() { return this.reportService.getTop10Picks(this.selectedMode); }, - totalPicks: function() { - return this.reportService.getTotalPicks(this.selectedMode); - }, }, components: { TalentImage, |
