diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-05-30 20:12:01 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-12-13 17:09:09 +0100 |
| commit | b09d7a9f73e9b28425326227ce8fc4c3b72fb14d (patch) | |
| tree | 82a274cac4d8eee2c7e41c0a626a1ce63241946d /src/Home.vue | |
| parent | 9bca0c543a8a3d5fae1efd0a5d36ef8d1f517d6b (diff) | |
| download | brokentalents-b09d7a9f73e9b28425326227ce8fc4c3b72fb14d.tar.gz brokentalents-b09d7a9f73e9b28425326227ce8fc4c3b72fb14d.zip | |
Big Routing/Tabbing/ReportService refactor, add ad blocks
Diffstat (limited to 'src/Home.vue')
| -rw-r--r-- | src/Home.vue | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/Home.vue b/src/Home.vue deleted file mode 100644 index b18a3d3..0000000 --- a/src/Home.vue +++ /dev/null @@ -1,41 +0,0 @@ -<template> - <b-tabs v-model="tabIndex" expanded type="is-toggle"> - <b-tab-item v-for="mode in modes" :label="getMode(mode)" :key="mode"> - <mode-tab :reportService="reportService"></mode-tab> - </b-tab-item> - </b-tabs> - </div> -</template> - - -<script> -import Vue from 'vue'; -import ModeTab from './ModeTab.vue'; -import RouterParamMixin from './RouterParamMixin.js'; -import * as maps from './maps/maps'; - -export default Vue.component('home', { - props: [ 'reportService' ], - mixins: [ RouterParamMixin ], - data: function() { - return { - modes: this.reportService.getModes(), - getMode: maps.getMode, - }; - }, - computed: { - tabIndex: { - get: function() { - return this.reportService.getModes().indexOf(this.selectedMode); - }, - set: function(index) { - const mode = this.reportService.getModes()[index]; - this.selectedMode = mode; - }, - }, - }, - components: { - ModeTab, - }, -}); -</script> |
