From c7d12a8aaaad45b6d131fedd8a2169348c0ef3f5 Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Mon, 25 Mar 2019 19:12:32 +0100
Subject: Use es6 method syntax

---
 src/ReportTable.vue | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/ReportTable.vue')

diff --git a/src/ReportTable.vue b/src/ReportTable.vue
index 972b006..aaee402 100644
--- a/src/ReportTable.vue
+++ b/src/ReportTable.vue
@@ -112,7 +112,7 @@ import * as maps from './maps/maps';
 
 export default Vue.component('report-table', {
   mixins: [ RouterParamMixin ],
-  data: function() {
+  data() {
     return {
       RARITIES: maps.RARITIES,
       getTalentName: maps.getTalentName,
@@ -123,7 +123,7 @@ export default Vue.component('report-table', {
     };
   },
   computed: {
-    report: function() {
+    report() {
       const giveTrue = (x) => true;
       const filters = [
         this.filterRarity != ''? (entry) => maps.getTalentRarity(entry.Talent) == this.filterRarity : giveTrue,
@@ -133,12 +133,12 @@ export default Vue.component('report-table', {
       return ReportService.getReport(this.selectedMode)
         .filter((entry) => filters.map((filter) => filter(entry)).reduce(and, true));
     },
-    totalPicks: function() {
+    totalPicks() {
       return ReportService.getTotalPicks(this.selectedMode);
     },
   },
   methods: {
-    downloadCsv: function() {
+    downloadCsv() {
       const csv = ReportService.getCsv(this.selectedMode);
       const downloaderElement = document.createElement('a');
       downloaderElement.href = 'data:text/csv;charset=utf-8,' + encodeURI(csv);
-- 
cgit v1.3.1

