diff --git a/src/components/card/CardSidebarTabComments.vue b/src/components/card/CardSidebarTabComments.vue index a4c403625..4235e2c61 100644 --- a/src/components/card/CardSidebarTabComments.vue +++ b/src/components/card/CardSidebarTabComments.vue @@ -88,6 +88,9 @@ export default { this.isLoading = true await this.$store.dispatch('fetchComments', { cardId: this.card.id }) this.isLoading = false + if (this.card.commentsUnread > 0) { + await this.$store.dispatch('markCommentsAsRead', this.card.id) + } }, async createComment(content) { const commentObj = { diff --git a/src/components/cards/CardBadges.vue b/src/components/cards/CardBadges.vue index a816ce81f..4f5abe70c 100644 --- a/src/components/cards/CardBadges.vue +++ b/src/components/cards/CardBadges.vue @@ -22,7 +22,10 @@