From ec8b0c51f872d2972a3deb6d6a836b9d9fd30141 Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Mon, 21 May 2018 15:55:52 +0200
Subject: Move query get/set into mixin

---
 src/Highlights.vue | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'src/Highlights.vue')

diff --git a/src/Highlights.vue b/src/Highlights.vue
index b98e792..02392ee 100644
--- a/src/Highlights.vue
+++ b/src/Highlights.vue
@@ -76,15 +76,12 @@
 <script>
 import Vue from 'vue';
 import TalentBox from './TalentBox.vue';
+import RouterParamMixin from './RouterParamMixin.js';
 
 export default Vue.component('highlights', {
   props: [ 'reportService' ],
+  mixins: [ RouterParamMixin ],
   computed: {
-    selectedMode: {
-      get: function() {
-        return this.$route.query.mode;
-      },
-    },
     stats: function() {
       return {
         topWin: this.reportService.getTopWin(this.selectedMode),
-- 
cgit v1.3.1

