🚨 🎨 add new rules & fix linter warnings
This commit is contained in:
committed by
Kevin
parent
6a2e1a58d5
commit
0e12d978bb
@@ -15,22 +15,22 @@ import { mapMutations } from 'vuex'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
categories: [{ slug: '', title: '' }]
|
||||
categories: [{ slug: '', title: '' }],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
areCardsVisible() {
|
||||
return this.$store.getters['Sidebar/areCardsVisible']
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.categories = this.$store.getters['data/resources'].map(({ title, slug }) => ({ title, slug }))
|
||||
},
|
||||
methods: {
|
||||
...mapMutations({
|
||||
toggleCardsVisible: 'Sidebar/toggleCardsVisible'
|
||||
})
|
||||
}
|
||||
toggleCardsVisible: 'Sidebar/toggleCardsVisible',
|
||||
}),
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user