From 2675bcb56ce8c659a55726265b1e84c3f550e1bb Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 19 Mar 2026 17:31:04 +0100 Subject: [PATCH] refactor(attachments): use local state instead of global attachment store TaskDetailView now computes hasAttachments from the task ref and handles the update:attachments emit from the Attachments component. --- frontend/src/views/tasks/TaskDetailView.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/tasks/TaskDetailView.vue b/frontend/src/views/tasks/TaskDetailView.vue index 8a61a498a..3f423d089 100644 --- a/frontend/src/views/tasks/TaskDetailView.vue +++ b/frontend/src/views/tasks/TaskDetailView.vue @@ -355,6 +355,7 @@ :edit-enabled="canWrite" :task="task" @taskChanged="({coverImageAttachmentId}) => task.coverImageAttachmentId = coverImageAttachmentId" + @update:attachments="attachments => task.attachments = attachments" /> @@ -622,7 +623,6 @@