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 () { totalLikeCount: function () {
if (this.hideVideoLikesAndDislikes) {
return null
}
return this.likeCount + this.dislikeCount return this.likeCount + this.dislikeCount
}, },
likePercentageRatio: function () { likePercentageRatio: function () {
if (this.hideVideoLikesAndDislikes) {
return null
}
return parseInt(this.likeCount / this.totalLikeCount * 100) return parseInt(this.likeCount / this.totalLikeCount * 100)
}, },

View File

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