From f01107fd737e2205bf60498b3d2954a251c3d9d4 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 5 Oct 2022 15:04:03 +0200 Subject: [PATCH] feat: add indicator if an attachment is task cover --- src/components/tasks/partials/attachments.vue | 18 +++++++++++++++++- src/i18n/lang/en.json | 3 ++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/components/tasks/partials/attachments.vue b/src/components/tasks/partials/attachments.vue index 0dd18c0f4..1880e8514 100644 --- a/src/components/tasks/partials/attachments.vue +++ b/src/components/tasks/partials/attachments.vue @@ -35,7 +35,15 @@ :key="a.id" @click="viewOrDownload(a)" > -
{{ a.file.name }}
+
+ {{ a.file.name }} + + {{ $t('task.attachment.usedAsCover') }} + +

@@ -418,5 +426,13 @@ async function setCoverImage(attachment: IAttachment | null) { } } +.is-task-cover { + background: var(--primary); + color: var(--white); + padding: .25rem .35rem; + border-radius: 4px; + font-size: .75rem; +} + @include modal-transition(); \ No newline at end of file diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index 2a8615b8d..780ce3b79 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -696,7 +696,8 @@ "copyUrlTooltip": "Copy the url of this attachment for usage in text", "setAsCover": "Make cover", "unsetAsCover": "Remove cover", - "successfullyChangedCoverImage": "The cover image was successfully changed." + "successfullyChangedCoverImage": "The cover image was successfully changed.", + "usedAsCover": "Cover image" }, "comment": { "title": "Comments",