🎨 resolve linter errors (single quotes / no semicolons / no unused variables)

This commit is contained in:
Kevin van der Werff
2019-10-01 14:13:06 +02:00
parent 405e0d61cb
commit 0e49dc795d
6 changed files with 28 additions and 32 deletions

View File

@@ -10,16 +10,17 @@
</template>
<script>
import Card from "../components/Card";
import TableRow from "../components/TableRow";
import Card from '../components/Card'
import TableRow from '../components/TableRow'
export default {
components: { Card, TableRow },
data() {
return {
categoryRouteTitle: this.$route.params.category,
index: '',
activeCard: '',
};
}
},
computed: {
areCardsVisible() {
@@ -29,6 +30,9 @@ export default {
return this.$store.getters['data/sortByTitle'](this.categoryRouteTitle)
},
},
created() {
this.activeCard = this.$route.query.card || ''
},
methods: {
setActiveCard(index) {
this.activeCard = index
@@ -40,15 +44,11 @@ export default {
this.setActiveCard(cleanTitle)
this.$router.push(path)
} catch (e) {
console.error(e);
console.error(e)
}
}
},
created() {
this.activeCard = this.$route.query.card || ''
},
components: { Card, TableRow }
};
}
}
</script>
<style lang="scss" scoped>