mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-26 03:55:10 +01:00
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
Block a user