diff --git a/css/icons.scss b/css/icons.scss
index c782f125d..6f2f35167 100644
--- a/css/icons.scss
+++ b/css/icons.scss
@@ -22,7 +22,9 @@
.icon-activity {
@include icon-color('activity-dark', 'activity', $color-black);
}
-
+.icon-comment--unread {
+ @include icon-color('comment', 'actions', $color-primary, 1, true);
+}
.avatardiv.circles {
background: var(--color-primary);
diff --git a/lib/Db/Card.php b/lib/Db/Card.php
index 4168c7fe2..af2c665c5 100644
--- a/lib/Db/Card.php
+++ b/lib/Db/Card.php
@@ -49,6 +49,7 @@ class Card extends RelationalEntity {
protected $notified = false;
protected $deletedAt = 0;
protected $commentsUnread = 0;
+ protected $commentsCount = 0;
protected $relatedStack = null;
protected $relatedBoard = null;
@@ -75,6 +76,7 @@ class Card extends RelationalEntity {
$this->addRelation('attachmentCount');
$this->addRelation('participants');
$this->addRelation('commentsUnread');
+ $this->addRelation('commentsCount');
$this->addResolvable('owner');
$this->addRelation('relatedStack');
diff --git a/lib/Service/CardService.php b/lib/Service/CardService.php
index 629185e21..0cb733c54 100644
--- a/lib/Service/CardService.php
+++ b/lib/Service/CardService.php
@@ -105,8 +105,10 @@ class CardService {
$card->setAttachmentCount($this->attachmentService->count($cardId));
$user = $this->userManager->get($this->currentUser);
$lastRead = $this->commentsManager->getReadMark('deckCard', (string)$card->getId(), $user);
- $count = $this->commentsManager->getNumberOfCommentsForObject('deckCard', (string)$card->getId(), $lastRead);
- $card->setCommentsUnread($count);
+ $countUnreadComments = $this->commentsManager->getNumberOfCommentsForObject('deckCard', (string)$card->getId(), $lastRead);
+ $countComments = $this->commentsManager->getNumberOfCommentsForObject('deckCard', (string)$card->getId());
+ $card->setCommentsUnread($countUnreadComments);
+ $card->setCommentsCount($countComments);
$stack = $this->stackMapper->find($card->getStackId());
$board = $this->boardService->find($stack->getBoardId());
diff --git a/src/components/card/CardSidebarTabComments.vue b/src/components/card/CardSidebarTabComments.vue
index ffbac760c..d10260cb6 100644
--- a/src/components/card/CardSidebarTabComments.vue
+++ b/src/components/card/CardSidebarTabComments.vue
@@ -7,7 +7,11 @@
-
{{ t('deck', 'No comments yet. Begin the discussion!') }}
+ +{{ error || t('deck', 'No comments yet. Begin the discussion!') }}