Support for the comment count of a video

This commit is contained in:
Bnyro 2023-06-27 21:38:34 +02:00
parent dd8f86e179
commit c751d45607
1 changed files with 5 additions and 1 deletions

View File

@ -178,7 +178,11 @@
<button
class="btn mb-2"
@click="toggleComments"
v-t="`actions.${showComments ? 'minimize_comments' : 'show_comments'}`"
v-text="
`${$t(showComments ? 'actions.minimize_comments' : 'actions.show_comments')} (${numberFormat(
comments?.commentCount,
)})`
"
/>
</div>
<div v-if="!showComments" class="xl:col-span-4 sm:col-span-3"></div>