Deleting categories

This commit is contained in:
2021-08-07 17:11:36 +03:00
parent 0215790d90
commit f271fe30d2
8 changed files with 278 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="home">
<TheCategoryBar />
<TheTaskList />
<TheCategoryBar @select="select" />
<TheTaskList :selectedCategory="selectedCategory" />
</div>
</template>
@@ -15,5 +15,15 @@ export default {
TheCategoryBar,
TheTaskList,
},
data() {
return {
selectedCategory: undefined,
};
},
methods: {
select(category) {
this.selectedCategory = category;
},
},
};
</script>