10.8 Use Global Event Bus to trigger button event

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

View File

@ -76,7 +76,7 @@ module.exports = function (/* ctx */) {
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
devServer: {
https: false,
port: 8089,
port: 5500,
open: false // opens browser window automatically
},

View File

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