Update read marker

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-01-31 13:22:43 +01:00
parent 1731cbd5ee
commit 41d286986b
5 changed files with 35 additions and 2 deletions

View File

@@ -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 = {