cover images

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2021-03-05 14:47:43 +01:00
parent a857c63b35
commit d4898552ad
7 changed files with 65 additions and 5 deletions

View File

@@ -36,6 +36,7 @@
</div>
<div class="card-upper">
<h3 v-if="compactMode || isArchived || showArchived || !canEdit || standalone">
{{ attachments }}
{{ card.title }}
</h3>
<h3 v-else-if="!editing">
@@ -121,6 +122,7 @@ export default {
}),
...mapGetters([
'isArchived',
]),
board() {
return this.$store.getters.boardById(this?.stack?.boardId)
@@ -128,6 +130,9 @@ export default {
stack() {
return this.$store.getters.stackById(this?.card?.stackId)
},
attachments() {
return [...this.$store.getters.attachmentsByCard(this.currentCard.id)].filter(attachment => attachment.deletedAt >= 0)
},
canEdit() {
if (this.currentBoard) {
return !this.currentBoard.archived && this.$store.getters.canEdit