From 70fae4dcfc70bf85f43491a2d4c158d6e70ef5e6 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 7 Oct 2020 17:59:24 +0200 Subject: [PATCH] Added the link display to the replies --- .../watch-video-comments/watch-video-comments.js | 3 +++ .../watch-video-comments/watch-video-comments.vue | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/watch-video-comments/watch-video-comments.js b/src/renderer/components/watch-video-comments/watch-video-comments.js index 424b18ad..61890fd2 100644 --- a/src/renderer/components/watch-video-comments/watch-video-comments.js +++ b/src/renderer/components/watch-video-comments/watch-video-comments.js @@ -151,6 +151,9 @@ export default Vue.extend({ comment.likes = null } comment.text = autolinker.link(comment.text) + comment.replies.forEach((reply) => { + reply.text = autolinker.link(reply.text) + }) return comment }) this.commentData = this.commentData.concat(commentData) diff --git a/src/renderer/components/watch-video-comments/watch-video-comments.vue b/src/renderer/components/watch-video-comments/watch-video-comments.vue index 9692f77a..abebf4a2 100644 --- a/src/renderer/components/watch-video-comments/watch-video-comments.vue +++ b/src/renderer/components/watch-video-comments/watch-video-comments.vue @@ -96,9 +96,11 @@ {{ reply.time }}

-

- {{ reply.text }} -

+