From 4cbf3f043a81854d35b81d3d8ba6c4852f171dd7 Mon Sep 17 00:00:00 2001 From: Fredrick W Warren Date: Wed, 10 Feb 2021 11:46:17 -0800 Subject: [PATCH] 10.8 Use Global Event Bus to trigger button event --- quasar.conf.js | 2 +- src/pages/PageTodo.vue | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/quasar.conf.js b/quasar.conf.js index 497f6d1..b16d9ea 100644 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -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 }, diff --git a/src/pages/PageTodo.vue b/src/pages/PageTodo.vue index 4ff2140..dd39d6d 100644 --- a/src/pages/PageTodo.vue +++ b/src/pages/PageTodo.vue @@ -50,6 +50,11 @@ export default { }, computed: { ...mapGetters('tasks', ['tasksTodo', 'tasksCompleted']) + }, + mounted () { + this.$root.$on('showAddTask', () => { + this.showAddTask = true + }) } }