10.8 Use Global Event Bus to trigger button event
This commit is contained in:
1 parent
c110b75c06
commit
4cbf3f043a
2 files changed
+6
-1
No files matched your search
@@ -50,6 +50,11 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapGetters('tasks', ['tasksTodo', 'tasksCompleted'])
|
||||
},
|
||||
mounted () {
|
||||
this.$root.$on('showAddTask', () => {
|
||||
this.showAddTask = true
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user