mirror of
https://github.com/plankanban/planka.git
synced 2025-12-25 17:25:01 +03:00
Add covers for cards
This commit is contained in:
@@ -64,6 +64,7 @@ export const makeCardByIdSelector = () =>
|
||||
|
||||
return {
|
||||
...cardModel.ref,
|
||||
coverUrl: cardModel.coverAttachment && cardModel.coverAttachment.coverUrl,
|
||||
isPersisted: !isLocalId(id),
|
||||
};
|
||||
},
|
||||
|
||||
@@ -355,6 +355,7 @@ export const attachmentsForCurrentCardSelector = createSelector(
|
||||
.toRefArray()
|
||||
.map((attachment) => ({
|
||||
...attachment,
|
||||
isCover: attachment.id === cardModel.coverAttachmentId,
|
||||
isPersisted: !isLocalId(attachment.id),
|
||||
}));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user