From 50d7458519e093a78b70e17925ee4bea11bf4d2f Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 19 Feb 2026 12:48:29 +0100 Subject: [PATCH] feat(attachments): open file picker directly from sidebar button Clicking the sidebar "Attachments" button (or pressing `f`) now opens the browser file picker directly, eliminating the redundant two-step flow of first revealing the section and then clicking upload. --- .../components/tasks/partials/Attachments.vue | 4 ++++ frontend/src/views/tasks/TaskDetailView.vue | 17 +++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/tasks/partials/Attachments.vue b/frontend/src/components/tasks/partials/Attachments.vue index b8b1c2542..553d501d0 100644 --- a/frontend/src/components/tasks/partials/Attachments.vue +++ b/frontend/src/components/tasks/partials/Attachments.vue @@ -383,6 +383,10 @@ async function setCoverImage(attachment: IAttachment | null) { emit('taskChanged', updatedTask) success({message: t('task.attachment.successfullyChangedCoverImage')}) } + +defineExpose({ + openFilePicker: () => filesRef.value?.click(), +})