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 () {
|
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)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue