mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-23 14:03:35 +00:00
Fix like counter display, since YouTube hides dislikes.
This commit is contained in:
parent
fdb022410b
commit
74d2bec931
@ -29,17 +29,17 @@
|
|||||||
<div class="uk-margin-small-right">{{ addCommas(video.views) }} views</div>
|
<div class="uk-margin-small-right">{{ addCommas(video.views) }} views</div>
|
||||||
<div class="uk-margin-small-right">{{ uploadDate }}</div>
|
<div class="uk-margin-small-right">{{ uploadDate }}</div>
|
||||||
<div class="uk-flex-1"></div>
|
<div class="uk-flex-1"></div>
|
||||||
<template v-if="video.likes >= 0 && video.dislikes >= 0">
|
<template v-if="video.likes >= 0">
|
||||||
<div class="uk-margin-small-left">
|
<div class="uk-margin-small-left">
|
||||||
<font-awesome-icon class="uk-margin-small-right" icon="thumbs-up"></font-awesome-icon>
|
<font-awesome-icon class="uk-margin-small-right" icon="thumbs-up"></font-awesome-icon>
|
||||||
<b>{{ addCommas(video.likes) }}</b>
|
<b>{{ addCommas(video.likes) }}</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-margin-small-left">
|
<div class="uk-margin-small-left">
|
||||||
<font-awesome-icon class="uk-margin-small-right" icon="thumbs-down"></font-awesome-icon>
|
<font-awesome-icon class="uk-margin-small-right" icon="thumbs-down"></font-awesome-icon>
|
||||||
<b>{{ addCommas(video.dislikes) }}</b>
|
<b>{{ video.dislikes >= 0 ? addCommas(video.dislikes) : "?" }}</b>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="video.likes < 0 && video.dislikes < 0">
|
<template v-if="video.likes < 0">
|
||||||
<div class="uk-margin-small-left">
|
<div class="uk-margin-small-left">
|
||||||
<b v-t="'video.ratings_disabled'" />
|
<b v-t="'video.ratings_disabled'" />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user