Hide like / dislike icons when option is enabled
This commit is contained in:
parent
e4273dae54
commit
6f97cf8e11
|
@ -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)
|
||||
},
|
||||
|
||||
|
|
|
@ -44,7 +44,10 @@
|
|||
<div class="viewCount">
|
||||
{{ parsedViewCount }}
|
||||
</div>
|
||||
<div class="likeBarContainer">
|
||||
<div
|
||||
class="likeBarContainer"
|
||||
v-if="!hideVideoLikesAndDislikes"
|
||||
>
|
||||
<div
|
||||
class="likeSection"
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue