1
0

Only allow cover if a preview is available

This commit is contained in:
Elscrux 2024-05-24 12:47:15 +02:00
parent 56d9223fc4
commit 6543795755

View File

@ -95,7 +95,7 @@
<icon icon="trash-alt" />
</BaseButton>
<BaseButton
v-if="editEnabled"
v-if="editEnabled && canPreview(a)"
class="attachment-info-meta-button"
@click.prevent.stop="setCoverImage(task.coverImageAttachmentId === a.id ? null : a)"
>