Hide like / dislike icons when option is enabled

This commit is contained in:
Preston 2020-11-23 14:28:38 -05:00
parent e4273dae54
commit 6f97cf8e11
2 changed files with 4 additions and 7 deletions

View File

@ -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)
},

View File

@ -44,7 +44,10 @@
<div class="viewCount">
{{ parsedViewCount }}
</div>
<div class="likeBarContainer">
<div
class="likeBarContainer"
v-if="!hideVideoLikesAndDislikes"
>
<div
class="likeSection"
>