Deleting categories
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user