From 7b62a0895d3f9dad1370d323914bd7720c8b7b7d Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 26 Feb 2022 13:14:08 +0100 Subject: [PATCH] fix: update page title when changing the task title --- src/views/tasks/TaskDetailView.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue index a4ae9e1d2..4f9dc42d9 100644 --- a/src/views/tasks/TaskDetailView.vue +++ b/src/views/tasks/TaskDetailView.vue @@ -520,6 +520,13 @@ export default { }, immediate: true, }, + // Using a watcher here because the header component handles saving the task with the api but we want to decouple + // it from the page title. + 'task.title': { + handler(title) { + this.setTitle(title) + }, + }, }, computed: { currentList() {