Merge pull request #1699 from nextcloud/artonge/feat/display_counts

Display reply, favorites, and reblog counts
pull/1702/head
Maxence Lange 2023-03-23 10:17:16 -01:00 zatwierdzone przez GitHub
commit 1ca33be580
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 15 dodań i 0 usunięć

Wyświetl plik

@ -38,6 +38,11 @@
<template #icon> <template #icon>
<Reply :size="20" /> <Reply :size="20" />
</template> </template>
<template #default>
<span v-if="item.replies_count !== 0">
{{ item.replies_count }}
</span>
</template>
</NcButton> </NcButton>
<NcButton :title="t('social', 'Boost')" <NcButton :title="t('social', 'Boost')"
type="tertiary-no-background" type="tertiary-no-background"
@ -45,6 +50,11 @@
<template #icon> <template #icon>
<Repeat :size="20" :fill-color="isBoosted ? 'var(--color-primary)' : 'var(--color-main-text)'" /> <Repeat :size="20" :fill-color="isBoosted ? 'var(--color-primary)' : 'var(--color-main-text)'" />
</template> </template>
<template #default>
<span v-if="item.reblogs_count !== 0">
{{ item.reblogs_count }}
</span>
</template>
</NcButton> </NcButton>
<NcButton v-if="!isLiked" <NcButton v-if="!isLiked"
:title="t('social', 'Like')" :title="t('social', 'Like')"
@ -53,6 +63,11 @@
<template #icon> <template #icon>
<HeartOutline :size="20" /> <HeartOutline :size="20" />
</template> </template>
<template #default>
<span v-if="item.favourites_count !== 0">
{{ item.favourites_count }}
</span>
</template>
</NcButton> </NcButton>
<NcButton v-if="isLiked" <NcButton v-if="isLiked"
:title="t('social', 'Undo Like')" :title="t('social', 'Undo Like')"