10.8 Use Global Event Bus to trigger button event

This commit is contained in:
Fredrick W Warren committed 2021-02-10 11:46:17 -08:00
1 parent c110b75c06
commit 4cbf3f043a
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -50,6 +50,11 @@ export default {
},
computed: {
...mapGetters('tasks', ['tasksTodo', 'tasksCompleted'])
},
mounted () {
this.$root.$on('showAddTask', () => {
this.showAddTask = true
})
}
}
</script>