From 6f97cf8e110fe52962da791484d55f6d46774a2f Mon Sep 17 00:00:00 2001 From: Preston Date: Mon, 23 Nov 2020 14:28:38 -0500 Subject: [PATCH] Hide like / dislike icons when option is enabled --- .../components/watch-video-info/watch-video-info.js | 6 ------ .../components/watch-video-info/watch-video-info.vue | 5 ++++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/renderer/components/watch-video-info/watch-video-info.js b/src/renderer/components/watch-video-info/watch-video-info.js index 4d72257a..31f226b6 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.js +++ b/src/renderer/components/watch-video-info/watch-video-info.js @@ -140,16 +140,10 @@ export default Vue.extend({ }, totalLikeCount: function () { - if (this.hideVideoLikesAndDislikes) { - return null - } return this.likeCount + this.dislikeCount }, likePercentageRatio: function () { - if (this.hideVideoLikesAndDislikes) { - return null - } return parseInt(this.likeCount / this.totalLikeCount * 100) }, diff --git a/src/renderer/components/watch-video-info/watch-video-info.vue b/src/renderer/components/watch-video-info/watch-video-info.vue index 4086286f..4f28452a 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.vue +++ b/src/renderer/components/watch-video-info/watch-video-info.vue @@ -44,7 +44,10 @@
{{ parsedViewCount }}
-
+