From 877e4250554b31db2d57f44a7443c5d04c783e59 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 2 Oct 2022 13:40:39 +0200 Subject: [PATCH] feat: promote an attachment to task cover image --- src/components/tasks/partials/attachments.vue | 68 +++++++++++++------ src/i18n/lang/en.json | 5 +- src/views/tasks/TaskDetailView.vue | 5 +- 3 files changed, 53 insertions(+), 25 deletions(-) diff --git a/src/components/tasks/partials/attachments.vue b/src/components/tasks/partials/attachments.vue index 70d6b049..016f5c11 100644 --- a/src/components/tasks/partials/attachments.vue +++ b/src/components/tasks/partials/attachments.vue @@ -9,7 +9,7 @@ {{ $t('misc.delete') }} + + {{ task.coverImageAttachmentId === a.id ? $t('task.attachment.unsetAsCover') : $t('task.attachment.setAsCover') }} +

@@ -85,7 +92,7 @@ {{ $t('task.attachment.delete') }} - +