summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-03-22 18:24:16 +0100
committerLouis Chemineau <louis@chmn.me>2023-03-22 18:24:16 +0100
commit2d290aecca14f10954d2df48b7049dacc7f85517 (patch)
tree2fa992935a8c4664437c16280d747574c80a685c
parentd2ff31f59fd676b6cbe77fef81542bdca86f14b0 (diff)
Display reply, favorites, and reblog counts
Signed-off-by: Louis Chemineau <louis@chmn.me>
-rw-r--r--src/components/TimelinePost.vue15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/components/TimelinePost.vue b/src/components/TimelinePost.vue
index ade9c221..99354c07 100644
--- a/src/components/TimelinePost.vue
+++ b/src/components/TimelinePost.vue
@@ -38,6 +38,11 @@
<template #icon>
<Reply :size="20" />
</template>
+ <template #default>
+ <span v-if="item.replies_count !== 0">
+ {{ item.replies_count }}
+ </span>
+ </template>
</NcButton>
<NcButton :title="t('social', 'Boost')"
type="tertiary-no-background"
@@ -45,6 +50,11 @@
<template #icon>
<Repeat :size="20" :fill-color="isBoosted ? 'var(--color-primary)' : 'var(--color-main-text)'" />
</template>
+ <template #default>
+ <span v-if="item.reblogs_count !== 0">
+ {{ item.reblogs_count }}
+ </span>
+ </template>
</NcButton>
<NcButton v-if="!isLiked"
:title="t('social', 'Like')"
@@ -53,6 +63,11 @@
<template #icon>
<HeartOutline :size="20" />
</template>
+ <template #default>
+ <span v-if="item.favourites_count !== 0">
+ {{ item.favourites_count }}
+ </span>
+ </template>
</NcButton>
<NcButton v-if="isLiked"
:title="t('social', 'Undo Like')"